projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
src/daemon/common.c: avoid leaking cap_header in error condition
[collectd.git]
/
src
/
daemon
/
common.c
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);
}