Fix crash issue 75/221275/1
authorwn.jang <wn.jang@samsung.com>
Tue, 31 Dec 2019 00:18:25 +0000 (09:18 +0900)
committerWonnam Jang <wn.jang@samsung.com>
Tue, 31 Dec 2019 00:20:06 +0000 (00:20 +0000)
Change-Id: I4141e9424a2501eefda98f4b8cee73ba17c1dbc9

common/stt_config_parser.c

index b179ffc..7292a1d 100644 (file)
@@ -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);