Fix memory leak in IP Monitor for tizen.
authorJamal Haidar <jamal.haidar@samsung.com>
Sat, 4 Jul 2015 08:35:08 +0000 (14:05 +0530)
committerErich Keane <erich.keane@intel.com>
Mon, 6 Jul 2015 05:39:13 +0000 (05:39 +0000)
In CAWIFIConnectionStateChangedCb, netInfo pointer not freed.

Change-Id: I186ffd6ddc43a1fff717a06a6d8f445ba8165691
Signed-off-by: Jamal Haidar <jamal.haidar@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1518
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
Reviewed-by: Erich Keane <erich.keane@intel.com>
resource/csdk/connectivity/src/ip_adapter/tizen/caipnwmonitor.c

index 231975c..729968e 100644 (file)
@@ -322,6 +322,7 @@ void CAWIFIConnectionStateChangedCb(wifi_connection_state_e state, wifi_ap_h ap,
         {
             OIC_LOG(DEBUG, IP_MONITOR_TAG, "CACheckIsInterfaceInfoChanged true");
         }
+        OICFree(netInfo);
 
         OICFree(interfaceName);
         OICFree(ipAddress);