diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-12-08 20:11:34 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-12-19 16:38:38 +0100 |
commit | b888d77d8ac81d800f9c0cbc66dc607b3312349a (patch) | |
tree | 1fc58ff4dd5b06d868f9f3aaa7b27a00b0c9a44e | |
parent | 6027a362447315d93eafd99bacaac0b1826e2c4c (diff) |
Fix memory leakeel_5.1.0eel_5.0.3eel_5.0.2eel_5.0.1eel_5.0.0eel_4.99.5eel/5.1.0eel/5.0.3eel/5.0.2eel/5.0.1eel/5.0.0eel/4.99.55.1.05.0.35.0.25.0.15.0.04.99.5eel
Change-Id: Ia02a639ea9210ed7961a88c91ff9e4cd1a732416
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r-- | filescan-utils.c | 3 |
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); } |