[CONF] Remove unnecessary g_key_file_free()
authorDongju Chae <dongju.chae@samsung.com>
Thu, 12 Dec 2019 04:30:19 +0000 (13:30 +0900)
committerMyungJoo 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

index 2ead29d..c49ec44 100644 (file)
@@ -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)