Resolved coverity issue 17/213817/2 accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix tizen_5.5_tv accepted/tizen/5.5/unified/20191031.023935 accepted/tizen/5.5/unified/mobile/hotfix/20201027.083843 accepted/tizen/unified/20191007.234903 submit/tizen/20191007.063116 submit/tizen_5.5/20191031.000003 submit/tizen_5.5/20191107.131452 submit/tizen_5.5_mobile_hotfix/20201026.185103 tizen_5.5.m2_release
authorRandeep Singh <randeep.s@samsung.com>
Thu, 12 Sep 2019 09:20:55 +0000 (14:50 +0530)
committerRandeep Singh <randeep.s@samsung.com>
Fri, 27 Sep 2019 10:26:04 +0000 (10:26 +0000)
Change-Id: I18258f77b29de1187123cbf0fd21c91c9fab70a5
Signed-off-by: Randeep Singh <randeep.s@samsung.com>
email-core/email-core-account.c

index 3432446..9d2eafb 100755 (executable)
@@ -616,7 +616,10 @@ INTERNAL_FUNC int emcore_create_account(char *multi_user_name, email_account_t *
        }
 
        if (EM_SAFE_STRLEN(account->options.alert_ringtone_path) == 0) {
-               account->options.alert_ringtone_path = EM_SAFE_STRDUP(vconf_get_str(VCONFKEY_SETAPPL_NOTI_MSG_RINGTONE_PATH_STR));
+               char *tempPtr = vconf_get_str(VCONFKEY_SETAPPL_NOTI_MSG_RINGTONE_PATH_STR);
+               account->options.alert_ringtone_path = EM_SAFE_STRDUP(tempPtr);
+               free(tempPtr);
+               tempPtr = NULL;
        }
 
        if (add_account_to_account_svc) {