From b540b81173ba997732f78dfd30c52c043d6378b4 Mon Sep 17 00:00:00 2001 From: dyamy-lee Date: Fri, 13 Sep 2024 13:53:56 +0900 Subject: [PATCH] add calling personal_info free function when its usage is over Change-Id: I591e2e1ca32b7eb088f1499bb1aa87b245fe90d8 --- common/tts_config_mgr.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.34.1