diff --git a/src/switch_xml.cpp b/src/switch_xml.cpp index 228b29a174..3c35c87978 100644 --- a/src/switch_xml.cpp +++ b/src/switch_xml.cpp @@ -1699,7 +1699,7 @@ SWITCH_DECLARE(void) switch_xml_free(switch_xml_t xml) } if (xml->free_path) { - if (!switch_stristr(".fsxml", xml->free_path)) { + if (!switch_stristr("freeswitch.xml.fsxml", xml->free_path)) { unlink(xml->free_path); } switch_safe_free(xml->free_path);