Fix defect detected by static analysis tool 75/279075/1
authorwn.jang <wn.jang@samsung.com>
Tue, 2 Aug 2022 00:37:42 +0000 (09:37 +0900)
committerwn.jang <wn.jang@samsung.com>
Tue, 2 Aug 2022 00:37:42 +0000 (09:37 +0900)
Change-Id: I247fc0379958d61a607b077b7f743e322435233d

common/stt_config_parser.c

index 8f53330..b18a23b 100644 (file)
@@ -971,6 +971,7 @@ int stt_parser_get_time_info(GSList** time_list)
 
        if (0 != __stt_parser_get_base_node_from_config(g_config_doc, &cur, STT_TAG_TIME_BASE_TAG)) {
                SLOG(LOG_ERROR, TAG_STTCONFIG, "[ERROR] Fail to get base node from config");
+               xmlFreeDoc(doc);
                return -1;
        }