Fix memory leak for strdup 83/68183/1 accepted/tizen/common/20160510.141624 accepted/tizen/ivi/20160512.050559 accepted/tizen/mobile/20160512.050543 accepted/tizen/tv/20160512.050536 accepted/tizen/wearable/20160512.050530 submit/tizen/20160510.121941
authorhyunuktak <hyunuk.tak@samsung.com>
Tue, 3 May 2016 02:12:15 +0000 (11:12 +0900)
committerhyunuktak <hyunuk.tak@samsung.com>
Tue, 3 May 2016 02:12:17 +0000 (11:12 +0900)
Change-Id: Ia912e7c9c5986dea74832469e852dd76fb312c02
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
packaging/net-config.spec
src/wifi-config.c

index b6c9468..6a9c914 100755 (executable)
@@ -1,6 +1,6 @@
 Name:          net-config
 Summary:       TIZEN Network Configuration service
-Version:       1.1.67
+Version:       1.1.68
 Release:       2
 Group:         System/Network
 License:       Apache-2.0
index 8da3fbf..1824ef2 100755 (executable)
@@ -590,6 +590,10 @@ gboolean handle_get_config_ids(Wifi *wifi, GDBusMethodInvocation *context)
 
        wifi_complete_get_config_ids(wifi, context, (const gchar * const *)result);
 
+       for (i = 0; i < length; i++)
+               if(result[i])
+                       g_free(result[i]);
+
        if (result)
                g_free(result);