From 9c9a53b10ead3ee8103f625ed47066df2c9d5b87 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 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); } -- 2.30.2