From 896a9f4ffd249feb12997356e4e873d4332f7c5c Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 28 Nov 2015 23:13:01 +0100 Subject: [PATCH] filecount plugin: fix leak on error path --- src/filecount.c | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.11.0