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