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.6.0~558^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1381%2Fhead;p=thirdparty%2Fcollectd.git filecount plugin: fix leak on error path --- diff --git a/src/filecount.c b/src/filecount.c index 47caf93f2..9ea8af7ab 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); }