diff options
author | Randeep Singh <randeep.s@samsung.com> | 2019-10-09 11:27:41 +0530 |
---|---|---|
committer | Randeep Singh <randeep.s@samsung.com> | 2019-10-09 06:03:01 +0000 |
commit | 27c0e6016762378cf5e4385a56a5f63e68711080 (patch) | |
tree | 945a33e650196ffb248590fe24d283c2b9b00de3 | |
parent | 85e8d7fe508f4102fbf31d133edf0ca36fa1d058 (diff) | |
download | settings-adid-27c0e6016762378cf5e4385a56a5f63e68711080.tar.gz settings-adid-27c0e6016762378cf5e4385a56a5f63e68711080.tar.bz2 settings-adid-27c0e6016762378cf5e4385a56a5f63e68711080.zip |
Resolved coverity issuetizen_6.0.m2_releasetizen_5.5.m2_releasesubmit/tizen_6.0_hotfix/20201103.115105submit/tizen_6.0_hotfix/20201102.192905submit/tizen_6.0/20211029.144301submit/tizen_6.0/20201029.205505submit/tizen_5.5_wearable_hotfix/20201026.184309submit/tizen_5.5_mobile_hotfix/20201026.185109submit/tizen_5.5/20191031.000013submit/tizen_5.5/20191031.000011submit/tizen_5.5/20191031.000009submit/tizen/20191014.051341accepted/tizen/unified/20191014.062430accepted/tizen/6.0/unified/hotfix/20201103.045122accepted/tizen/6.0/unified/20211029.081530accepted/tizen/6.0/unified/20201030.103206accepted/tizen/5.5/unified/wearable/hotfix/20201027.094918accepted/tizen/5.5/unified/mobile/hotfix/20201027.071047accepted/tizen/5.5/unified/20191031.033703tizen_6.0_hotfixtizen_5.5_wearable_hotfixtizen_5.5_tvtizen_5.5_mobile_hotfixtizen_5.5accepted/tizen_6.0_unified_hotfixaccepted/tizen_6.0_unifiedaccepted/tizen_5.5_unified_wearable_hotfixaccepted/tizen_5.5_unified_mobile_hotfixaccepted/tizen_5.5_unified
Change-Id: I34c86263a5db4c604c8421c693792a382ea20856
Signed-off-by: Randeep Singh <randeep.s@samsung.com>
-rw-r--r-- | src/ad-id.c | 4 |
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: |