projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Don't divide by 0 when doing percentages (e.g. with the swap plugin).
[collectd.git]
/
src
/
filecount.c
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);
}