Fix Svace issue (MEMORY_LEAK) 91/173791/2 accepted/tizen/unified/20180329.054122 submit/tizen/20180327.043053
authorGilbok Lee <gilbok.lee@samsung.com>
Mon, 26 Mar 2018 03:55:14 +0000 (12:55 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Tue, 27 Mar 2018 04:15:26 +0000 (13:15 +0900)
[Version] 0.1.15
[Profile] Mobile, Wearable
[Issue Type] Fix bugs

Change-Id: I3776b31ffbe7eb54d386ab3bdc07349e76f98ac9

packaging/capi-mediamuxer.spec
src/mediamuxer_ini.c

index bc1d0f5..e7e08e3 100755 (executable)
@@ -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
index ec3665c..bfc6aa0 100644 (file)
@@ -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)