Fixed memory leaks while using Tizen CAPI
authorSaurav Babu <saurav.babu@samsung.com>
Tue, 23 Feb 2016 11:47:32 +0000 (17:17 +0530)
committerMadan Lanka <lanka.madan@samsung.com>
Thu, 25 Feb 2016 00:44:01 +0000 (00:44 +0000)
commit28dc1a4e55af5c42b8a75cff0568b8389b7d9ee5
treeb7d28ae714b81c3e1789aa379937f32853199972
parent349fabbf9ff8a7a34391a16b46101435dbd721c4
Fixed memory leaks while using Tizen CAPI

wifi_ap_get_ip_address() returns string with allocated memory, this
patch frees the memory if it was allocated earlier.
wifi_ap_get_essid() returns string with allocated memory, this patch
frees the memory after its use

Change-Id: Ieb6adbabca8317ab66f0efddf8635d4a1693c662
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/5157
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
service/easy-setup/enrollee/tizen/wifi/networkhandler.cpp