diff options
author | Randeep Singh <randeep.s@samsung.com> | 2019-09-12 14:50:55 +0530 |
---|---|---|
committer | Randeep Singh <randeep.s@samsung.com> | 2019-09-27 10:26:04 +0000 |
commit | aa8fe0d86e93a478db2ce46cb8876f0cf7cc14db (patch) | |
tree | 76d83636a652eeec65506bd13fe2aac66433a5f4 | |
parent | 17300a008de6945b675bee77f21f005124a76d00 (diff) | |
download | email-service-aa8fe0d86e93a478db2ce46cb8876f0cf7cc14db.tar.gz email-service-aa8fe0d86e93a478db2ce46cb8876f0cf7cc14db.tar.bz2 email-service-aa8fe0d86e93a478db2ce46cb8876f0cf7cc14db.zip |
Resolved coverity issuetizen_5.5.m2_releasesubmit/tizen_5.5_mobile_hotfix/20201026.185103submit/tizen_5.5/20191107.131452submit/tizen_5.5/20191031.000003submit/tizen/20191007.063116accepted/tizen/unified/20191007.234903accepted/tizen/5.5/unified/mobile/hotfix/20201027.083843accepted/tizen/5.5/unified/20191031.023935tizen_5.5_tvtizen_5.5_mobile_hotfixaccepted/tizen_5.5_unified_mobile_hotfix
Change-Id: I18258f77b29de1187123cbf0fd21c91c9fab70a5
Signed-off-by: Randeep Singh <randeep.s@samsung.com>
-rwxr-xr-x | email-core/email-core-account.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/email-core/email-core-account.c b/email-core/email-core-account.c index 3432446..9d2eafb 100755 --- a/email-core/email-core-account.c +++ b/email-core/email-core-account.c @@ -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) { |