diff --git a/src/filecount.c b/src/filecount.c
index 47f99e91c8e3df2a502208ba6f99f6596afe10e1..03c018b20de938826fdf7b4c073b58ea4b1156ee 100644 (file)
--- a/src/filecount.c
+++ b/src/filecount.c
if (dir->path == NULL)
{
ERROR ("filecount plugin: strdup failed.");
+ sfree (dir);
return (-1);
}