From: Ruben Kerkhof Date: Sat, 28 Nov 2015 22:13:01 +0000 (+0100) Subject: filecount plugin: fix leak on error path X-Git-Tag: collectd-5.5.1~40^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9c9a53b10ead3ee8103f625ed47066df2c9d5b87;p=collectd.git filecount plugin: fix leak on error path --- diff --git a/src/filecount.c b/src/filecount.c index 47f99e91..03c018b2 100644 --- 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); }