Fix SVACE Warning 31/105931/1
authorkiso.chang <kiso.chang@samsung.com>
Tue, 20 Dec 2016 05:28:01 +0000 (14:28 +0900)
committerkiso.chang <kiso.chang@samsung.com>
Tue, 20 Dec 2016 05:29:03 +0000 (14:29 +0900)
 - memory leak in setting-network-con-list.c

Change-Id: I9e527372bbaebb42a486bdbddfe3fd8285f6447a
Signed-off-by: kiso.chang <kiso.chang@samsung.com>
setting-network/src/setting-network-con-list.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index e52112d..3725904
@@ -533,6 +533,8 @@ static void __set_default_profile(Setting_GenGroupItem_Data *list_item)
                        connection_profile_get_name(profile_h, &name);
                        SETTING_TRACE("Set default: type:[%d], profile:[%p], name:[%s]",
                                        selected_service_type, profile_h, name);
+                       G_FREE(name);
+
                        ret = connection_set_default_cellular_service_profile(
                                        ad->connection, selected_service_type,
                                        profile_h);