projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e211f8
)
src/daemon/common.c: avoid leaking cap_header in error condition
author
Marc Fournier
<marc.fournier@camptocamp.com>
Wed, 10 Aug 2016 20:42:23 +0000
(22:42 +0200)
committer
Marc Fournier
<marc.fournier@camptocamp.com>
Wed, 10 Aug 2016 20:42:23 +0000
(22:42 +0200)
src/daemon/common.c
patch
|
blob
|
history
diff --git
a/src/daemon/common.c
b/src/daemon/common.c
index
a522759
..
1450352
100644
(file)
--- a/
src/daemon/common.c
+++ b/
src/daemon/common.c
@@
-1688,6
+1688,7
@@
int check_capability (int capability) /* {{{ */
if (cap_data == NULL)
{
ERROR("check_capability: calloc failed");
+ sfree(cap_header);
return (-1);
}