From: dyamy-lee Date: Fri, 13 Sep 2024 04:53:56 +0000 (+0900) Subject: add calling personal_info free function when its usage is over X-Git-Tag: accepted/tizen/unified/20240930.043752~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b540b81173ba997732f78dfd30c52c043d6378b4;p=platform%2Fcore%2Fuifw%2Ftts.git add calling personal_info free function when its usage is over Change-Id: I591e2e1ca32b7eb088f1499bb1aa87b245fe90d8 --- diff --git a/common/tts_config_mgr.c b/common/tts_config_mgr.c index 09663a97..aae206a6 100644 --- a/common/tts_config_mgr.c +++ b/common/tts_config_mgr.c @@ -2509,9 +2509,11 @@ int tts_config_mgr_get_personal_voice_list(const char* engine_id, tts_config_sup } } else { SLOG(LOG_ERROR, TAG_TTSCONFIG, "[ERROR] No personal voices list"); + tts_parser_free_personal_info(info); return TTS_CONFIG_ERROR_INVALID_VOICE; } + tts_parser_free_personal_info(info); return TTS_CONFIG_ERROR_NONE; }