From: dyamy-lee Date: Fri, 13 Sep 2024 01:57:58 +0000 (+0900) Subject: add free'ing current_engine variable X-Git-Tag: accepted/tizen/unified/20240930.043752~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9c90dfb2197bec40de491bcfbe0d682406057ec3;p=platform%2Fcore%2Fuifw%2Ftts.git add free'ing current_engine variable Change-Id: I201bf37c6a523a598a2b9e7af3085606f0c92237 --- diff --git a/server/ttsd_config.c b/server/ttsd_config.c index a6675ef9..a9874676 100644 --- a/server/ttsd_config.c +++ b/server/ttsd_config.c @@ -327,8 +327,10 @@ int ttsd_config_get_personal_voices_list(ttsd_config_supported_personal_voice_cb ret = tts_config_mgr_get_personal_voice_list(current_engine, __ttsd_config_personal_voices, user_data); if (TTS_CONFIG_ERROR_NONE != ret) { SLOG(LOG_ERROR, TAG_TTSCONFIG, "[Config ERROR] Fail to get persoanl voice list. ret(%d)", ret); + free(current_engine); return TTSD_ERROR_OPERATION_FAILED; } + free(current_engine); return TTSD_ERROR_NONE; }