[Conf/MemLeak] Add missing g_free() to nnstreamer_conf.c
authorDongju Chae <dongju.chae@samsung.com>
Thu, 18 Jun 2020 05:43:18 +0000 (14:43 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 22 Jun 2020 00:18:13 +0000 (09:18 +0900)
commit68f1c73e6f55502c6c4359dce388c26aae852b47
treef0376fb25373dfda0f161b5b17e0016d38bd3263
parentda761a0635eb7e9574d58d5221158cf09eafc3aa
[Conf/MemLeak] Add missing g_free() to nnstreamer_conf.c

This patch adds missing `g_free()` to `nnstreamer_conf.c`

`nnsconf_get_custom_value_string()` allocates `hashkey` in the first
line. However, if a value is found in the first hash lookup or a value
does not exist in anywhere, `hashkey` is not inserted to the hash table,
which results in memory leak.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
gst/nnstreamer/nnstreamer_conf.c