Fix issue detected by static analysis tool 23/248623/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Tue, 1 Dec 2020 03:47:50 +0000 (12:47 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 1 Dec 2020 03:48:03 +0000 (12:48 +0900)
commitbf8de1c8afbe1fe97d22e0b6ea0ece8005f894c2
tree14887110b6845847ceaaa11c46bfe55ce4bc2609
parentfec26ace599e37d7ed899f0d45054d51f39ed664
Fix issue detected by static analysis tool

Dynamic memory referenced by 'pref_str' was allocated at preference.c:1245
by calling function 'preference_get_string' at config.cpp:74 and lost at config.cpp:75.

Change-Id: I5f7a6f24701a8e4730daeb24903f78fafd3c142f
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/config.cpp