summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandeep Singh <randeep.s@samsung.com>2019-10-09 11:27:41 +0530
committerRandeep Singh <randeep.s@samsung.com>2019-10-09 06:03:01 +0000
commit27c0e6016762378cf5e4385a56a5f63e68711080 (patch)
tree945a33e650196ffb248590fe24d283c2b9b00de3
parent85e8d7fe508f4102fbf31d133edf0ca36fa1d058 (diff)
downloadsettings-adid-27c0e6016762378cf5e4385a56a5f63e68711080.tar.gz
settings-adid-27c0e6016762378cf5e4385a56a5f63e68711080.tar.bz2
settings-adid-27c0e6016762378cf5e4385a56a5f63e68711080.zip
Change-Id: I34c86263a5db4c604c8421c693792a382ea20856 Signed-off-by: Randeep Singh <randeep.s@samsung.com>
-rw-r--r--src/ad-id.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ad-id.c b/src/ad-id.c
index 85effe9..340e2cf 100644
--- a/src/ad-id.c
+++ b/src/ad-id.c
@@ -216,7 +216,9 @@ _text_get_cb(void *data, Evas_Object *obj, const char *part)
case 2:
adid = vconf_get_str(VCONFKEY_SETAPPL_AD_ID);
AI_LOGD("adid: %s", adid);
- return strdup(adid);
+ char *temp = strdup(adid);
+ free(adid);
+ return temp;
case 3:
return strdup(dgettext(AD_ID_APP_NAME, "IDS_ST_SBODY_CREATE_A_NEW_USER_PROFILE_BY_GENERATING_A_NEW_ADVERTISING_ID_ABB"));
case 4: