Code Review
/
src
/
libafb-helpers.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
2e3e379
)
Fix memory leak
author
Romain Forlot
<romain.forlot@iot.bzh>
Fri, 8 Dec 2017 19:11:34 +0000
(20:11 +0100)
committer
Romain Forlot
<romain.forlot@iot.bzh>
Thu, 13 Dec 2018 13:12:02 +0000
(14:12 +0100)
Change-Id: Ia02a639ea9210ed7961a88c91ff9e4cd1a732416
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
filescan-utils.c
patch
|
blob
|
history
diff --git
a/filescan-utils.c
b/filescan-utils.c
index
a20179c
..
8b70d69
100644
(file)
--- 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);
}