Fix memory leak in __net_popup_get_tizen_profile() 50/187750/2 accepted/tizen/unified/20180905.060819 submit/tizen/20180831.123807 submit/tizen/20180903.055755 submit/tizen/20180904.101926
authorTaesoo Jun <steve.jun@samsung.com>
Tue, 28 Aug 2018 07:00:09 +0000 (16:00 +0900)
committerTaesoo Jun <steve.jun@samsung.com>
Fri, 31 Aug 2018 04:36:50 +0000 (13:36 +0900)
Change-Id: I3c38977ae075509f6737d21d3178fa16ff4871cc
Signed-off-by: Taesoo Jun <steve.jun@samsung.com>
packaging/net.netpopup.spec [changed mode: 0755->0644]
src/net-popup.c

old mode 100755 (executable)
new mode 100644 (file)
index 0dadf77..1bd0595
@@ -1,7 +1,7 @@
 Name:       net.netpopup
 Summary:    Network Notification Popup application
 Version:    0.2.91
-Release:    1
+Release:    2
 Group:      App/Network
 License:    Flora-1.1
 Source0:    %{name}-%{version}.tar.gz
index 795f5d1..56c5cec 100755 (executable)
@@ -145,7 +145,7 @@ static void __net_popup_del_ip_conflict_noti(void);
 
 static void __net_popup_get_tizen_profile(void)
 {
-       char *profile_name;
+       char *profile_name = NULL;
 
        system_info_get_platform_string("http://tizen.org/feature/profile", &profile_name);
 
@@ -174,6 +174,7 @@ static void __net_popup_get_tizen_profile(void)
                g_profile = TIZEN_PROFILE_COMMON;
                log_print(NET_POPUP, "common profile\n");
        }
+       free(profile_name);
 }
 
 GDBusProxy *__net_popup_init_dbus(void)