From 6452fff8dfeaac55d7a712532db8d7b9073a626c Mon Sep 17 00:00:00 2001 From: Andrey Volk Date: Fri, 22 Nov 2019 16:42:23 +0400 Subject: [PATCH] [Unit-tests] Fix switch_xml test crash --- tests/unit/switch_xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/switch_xml.c b/tests/unit/switch_xml.c index 3af029ce4d..2f3e0c47eb 100644 --- a/tests/unit/switch_xml.c +++ b/tests/unit/switch_xml.c @@ -109,13 +109,13 @@ FST_MINCORE_BEGIN() xml_string = switch_xml_toxml(xml, SWITCH_FALSE); fst_requires(xml_string); fst_check_string_equals(xml_string, "\n Voulez-Vous Parler Français\n\n"); - switch_xml_free(xml); free(xml_string); xml_string = switch_xml_toxml_ex(xml, SWITCH_FALSE, SWITCH_FALSE); fst_requires(xml_string); fst_check_string_equals(xml_string, "\n Voulez-Vous Parler Français\n\n"); switch_xml_free(xml); + free(xml_string); } FST_TEST_END() }