Fix memory leak (WGID 185683, 185684) 55/121755/1 accepted/tizen/common/20170329.172440 accepted/tizen/ivi/20170329.222301 accepted/tizen/mobile/20170329.222151 accepted/tizen/tv/20170329.222224 accepted/tizen/unified/20170329.222317 accepted/tizen/wearable/20170329.222239 submit/tizen/20170329.085840
authorchleun.moon <chleun.moon@samsung.com>
Mon, 27 Mar 2017 02:07:34 +0000 (11:07 +0900)
committertaesub kim <taesub.kim@samsung.com>
Wed, 29 Mar 2017 00:49:29 +0000 (09:49 +0900)
Change-Id: If5727ee4eca7f53b9ccd0395f52d03f5c682bfdc
Signed-off-by: cheoleun <chleun.moon@samsung.com>
src/network_dbus.c

index d7f390d..3bb9f1c 100755 (executable)
@@ -1309,6 +1309,7 @@ int _net_dbus_set_profile_ipv4(net_profile_info_s* prof_info, char* profile_name
 
        } else {
                WIFI_LOG(WIFI_ERROR, "Invalid argument");
+               g_variant_builder_unref(builder);
                __NETWORK_FUNC_EXIT__;
                return NET_ERR_INVALID_PARAM;
        }
@@ -1418,6 +1419,7 @@ int _net_dbus_set_profile_ipv6(net_profile_info_s* prof_info, char* profile_name
                                prefix_length, prop_gateway, gwaddr6);
        } else {
                WIFI_LOG(WIFI_ERROR, "Invalid argument\n");
+               g_variant_builder_unref(builder);
                __NETWORK_FUNC_EXIT__;
                return NET_ERR_INVALID_PARAM;
        }