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:
ee6f37f
)
[CONF] Remove unnecessary g_key_file_free()
author
Dongju Chae
<dongju.chae@samsung.com>
Thu, 12 Dec 2019 04:30:19 +0000
(13:30 +0900)
committer
MyungJoo Ham
<myungjoo.ham@samsung.com>
Thu, 12 Dec 2019 10:38:09 +0000
(19:38 +0900)
This commit removes unnecessary g_key_file_free() because g_autoptr
already provides cleanup process. This bug was detected by valgrind.
Signed-off-by: Dongju Chae <dongju.chae@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
2ead29d
..
c49ec44
100644
(file)
--- a/
gst/nnstreamer/nnstreamer_conf.c
+++ b/
gst/nnstreamer/nnstreamer_conf.c
@@
-496,8
+496,6
@@
nnsconf_get_custom_value_string (const gchar * group, const gchar * key)
NULL)) {
value = g_key_file_get_string (key_file, group, key, NULL);
}
-
- g_key_file_free (key_file);
}
if (value)