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: https://git.verplant.org/?a=commitdiff_plain;h=896a9f4ffd249feb12997356e4e873d4332f7c5c;p=collectd.git filecount plugin: fix leak on error path --- diff --git a/src/filecount.c b/src/filecount.c index 47caf93f..9ea8af7a 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); }