From 2477f91e51c378e28254809d7da6a0e4ff73d0a7 Mon Sep 17 00:00:00 2001 From: "wn.jang" Date: Tue, 31 Dec 2019 09:18:25 +0900 Subject: [PATCH] Fix crash issue Change-Id: I4141e9424a2501eefda98f4b8cee73ba17c1dbc9 --- common/stt_config_parser.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/stt_config_parser.c b/common/stt_config_parser.c index b179ffc..7292a1d 100644 --- a/common/stt_config_parser.c +++ b/common/stt_config_parser.c @@ -521,7 +521,10 @@ int stt_parser_load_config(stt_config_s** config_info) int stt_parser_unload_config(stt_config_s* config_info) { - if (NULL != g_config_doc) xmlFreeDoc(g_config_doc); + if (NULL != g_config_doc) { + xmlFreeDoc(g_config_doc); + g_config_doc = NULL; + } if (NULL != config_info) { if (NULL != config_info->engine_id) { free(config_info->engine_id); -- 2.7.4