From 9412ab1fd2b2d6b57188d5fd372918cad65bbe1c Mon Sep 17 00:00:00 2001 From: Gilbok Lee Date: Mon, 26 Mar 2018 12:55:14 +0900 Subject: [PATCH] Fix Svace issue (MEMORY_LEAK) [Version] 0.1.15 [Profile] Mobile, Wearable [Issue Type] Fix bugs Change-Id: I3776b31ffbe7eb54d386ab3bdc07349e76f98ac9 --- packaging/capi-mediamuxer.spec | 2 +- src/mediamuxer_ini.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packaging/capi-mediamuxer.spec b/packaging/capi-mediamuxer.spec index bc1d0f5..e7e08e3 100755 --- a/packaging/capi-mediamuxer.spec +++ b/packaging/capi-mediamuxer.spec @@ -1,6 +1,6 @@ Name: capi-mediamuxer Summary: A Media Muxer library in Tizen Native API -Version: 0.1.14 +Version: 0.1.15 Release: 1 Group: Multimedia/API License: Apache-2.0 diff --git a/src/mediamuxer_ini.c b/src/mediamuxer_ini.c index ec3665c..bfc6aa0 100644 --- a/src/mediamuxer_ini.c +++ b/src/mediamuxer_ini.c @@ -158,7 +158,8 @@ int mx_ini_load(mx_ini_t *ini) } else { MX_E("Invalid port is set to [%s] [%d]", ini->port_name, ini->port_type); - goto ERROR; + iniparser_freedict(dict); + return MX_COURRPTED_INI; } MX_L("The port is set to [%s] [%d]", ini->port_name, ini->port_type); @@ -173,8 +174,7 @@ int mx_ini_load(mx_ini_t *ini) MX_L("port_type : %d", ini->port_type); return MM_ERROR_NONE; -ERROR: - return MX_COURRPTED_INI; + } static void _mx_ini_check_ini_status(void) -- 2.7.4