summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeonah Moon <seonah1.moon@samsung.com>2018-08-22 11:15:12 +0900
committerSeonah Moon <seonah1.moon@samsung.com>2018-08-22 11:15:16 +0900
commit30ea98ebfcad2828de0c9fbfd836e59df9d8bc07 (patch)
tree8cf1927dd78f0f824d270bb91580ba27e1127510
parent7fcbfd290833015f75c18c913fd312ac8dd29cb2 (diff)
downloadwifi-30ea98ebfcad2828de0c9fbfd836e59df9d8bc07.tar.gz
wifi-30ea98ebfcad2828de0c9fbfd836e59df9d8bc07.tar.bz2
wifi-30ea98ebfcad2828de0c9fbfd836e59df9d8bc07.zip
Change-Id: I151ef33ae3631f431970de19b2ec56de52ecb22a
-rw-r--r--sources/wearable/src/wearable-circle/app_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sources/wearable/src/wearable-circle/app_main.c b/sources/wearable/src/wearable-circle/app_main.c
index 20648cf..4b6f592 100644
--- a/sources/wearable/src/wearable-circle/app_main.c
+++ b/sources/wearable/src/wearable-circle/app_main.c
@@ -931,6 +931,7 @@ static char *__detail_menu_ip_text_get_cb(void *data, Evas_Object *obj, const ch
if (ipv4_addr) {
if (!(ret = (char *)realloc(ret, strlen(ipv4_addr) + 13))) {
free(ret);
+ free(ipv4_addr);
WIFI_LOG_ERR("Failed to realloc memory");
return NULL;
}
@@ -944,12 +945,13 @@ static char *__detail_menu_ip_text_get_cb(void *data, Evas_Object *obj, const ch
if (ipv6_addr) {
if (!(ret = (char *)realloc(ret, strlen(ret) + strlen(ipv6_addr) + 9))) {
free(ret);
+ free(ipv6_addr);
WIFI_LOG_ERR("Failed to realloc memory");
return NULL;
}
strncat(ret, "IPv6<br>", 9);
strncat(ret, ipv6_addr, strlen(ipv6_addr) + 1);
- free(ipv4_addr);
+ free(ipv6_addr);
ipv6_addr = NULL;
}