projects
/
platform
/
upstream
/
nnstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e136c89
)
[Common/Conf] Close g_dir_open instance.
author
MyungJoo Ham
<myungjoo.ham@samsung.com>
Thu, 29 Nov 2018 00:39:32 +0000
(09:39 +0900)
committer
Jijoong Moon
<jijoong.moon@samsung.com>
Thu, 29 Nov 2018 01:50:00 +0000
(10:50 +0900)
The returned object must be closed.
Reported-by: Wook Song <wook16.song@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
gst/nnstreamer/nnstreamer_conf.c
patch
|
blob
|
history
diff --git
a/gst/nnstreamer/nnstreamer_conf.c
b/gst/nnstreamer/nnstreamer_conf.c
index
ffec707
..
add6261
100644
(file)
--- a/
gst/nnstreamer/nnstreamer_conf.c
+++ b/
gst/nnstreamer/nnstreamer_conf.c
@@
-105,6
+105,7
@@
_get_fullpath_filenames (const gchar * dir, GSList * list, uint32_t * counter)
*counter = *counter + 1;
}
g_free (dirfullpath);
+ g_dir_close (gdir);
return list;
}
@@
-129,6
+130,7
@@
_get_basenames (const gchar * dir, GSList * list, uint32_t * counter)
list = g_slist_prepend (list, g_path_get_basename (name));
*counter = *counter + 1;
}
+ g_dir_close (gdir);
return list;
}