X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ffilecount.c;h=03c018b20de938826fdf7b4c073b58ea4b1156ee;hb=a8df5fa185c4edc65b184d6a8326ce03479ffe5f;hp=47f99e91c8e3df2a502208ba6f99f6596afe10e1;hpb=ff8390d53b08dd36f8b0c5f4e530fe7ea9f21b90;p=collectd.git 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); }