From: chleun.moon Date: Mon, 27 Mar 2017 02:07:34 +0000 (+0900) Subject: Fix memory leak (WGID 185683, 185684) X-Git-Tag: submit/tizen_3.0/20170327.043525^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=77c4ab57cc061e74119468db1e67de6ac4074a3d;p=platform%2Fcore%2Fapi%2Fwifi-manager.git Fix memory leak (WGID 185683, 185684) Change-Id: If5727ee4eca7f53b9ccd0395f52d03f5c682bfdc Signed-off-by: cheoleun --- diff --git a/src/network_dbus.c b/src/network_dbus.c index 3891dda..619b526 100755 --- a/src/network_dbus.c +++ b/src/network_dbus.c @@ -1216,7 +1216,7 @@ int _net_dbus_connect_service(const net_wifi_connect_service_info_t *wifi_connec Error = _net_dbus_open_connection(prof_info->ProfileName); //LCOV_EXCL_STOP -error : +error: if (NET_ERR_NONE != Error) { WIFI_LOG(WIFI_ERROR, //LCOV_EXCL_LINE "Failed to request open connection, Error [%s]", @@ -1315,6 +1315,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; } @@ -1424,6 +1425,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; }