add calling personal_info free function when its usage is over 90/317690/2
authordyamy-lee <dyamy.lee@samsung.com>
Fri, 13 Sep 2024 04:53:56 +0000 (13:53 +0900)
committerdyamy-lee <dyamy.lee@samsung.com>
Fri, 13 Sep 2024 05:38:26 +0000 (14:38 +0900)
Change-Id: I591e2e1ca32b7eb088f1499bb1aa87b245fe90d8

common/tts_config_mgr.c

index 09663a9..aae206a 100644 (file)
@@ -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;
 }