projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de2f2b8
)
filecount plugin: fix leak on error path
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 28 Nov 2015 22:13:01 +0000
(23:13 +0100)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 28 Nov 2015 22:13:01 +0000
(23:13 +0100)
src/filecount.c
patch
|
blob
|
history
diff --git
a/src/filecount.c
b/src/filecount.c
index
47caf93
..
9ea8af7
100644
(file)
--- a/
src/filecount.c
+++ b/
src/filecount.c
@@
-356,6
+356,7
@@
static int fc_config_add_dir (oconfig_item_t *ci)
if (dir->path == NULL)
{
ERROR ("filecount plugin: strdup failed.");
+ sfree (dir);
return (-1);
}