From 3f59051b0a810beec98515e53f69b4ba0455f8b6 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 27 Sep 2006 00:50:38 +0000 Subject: [PATCH] close the xml handle git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2840 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c b/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c index 4663211ba1..a293245faf 100644 --- a/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c +++ b/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c @@ -293,6 +293,7 @@ static switch_caller_extension_t *dialplan_hunt(switch_core_session_t *session) if (!(xcontext = switch_xml_find_child(cfg, "context", "name", "global"))) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "context %s not found\n", context); switch_channel_hangup(channel, SWITCH_CAUSE_MESSAGE_TYPE_NONEXIST); + switch_xml_free(xml); return NULL; } }