aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--filescan-utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/filescan-utils.c b/filescan-utils.c
index a20179c..8b70d69 100644
--- a/filescan-utils.c
+++ b/filescan-utils.c
@@ -88,9 +88,10 @@ PUBLIC json_object* ScanForConfig (const char* searchPath, CtlScanDirModeT mode,
}
if (count == 0) {
json_object_put (responseJ);
+ free(dirList);
return NULL;
}
-
+ free(dirList);
return (responseJ);
}