From: Anthony Minessale Date: Wed, 27 Sep 2006 00:50:38 +0000 (+0000) Subject: close the xml handle X-Git-Tag: v1.0-beta1~2057 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3f59051b0a810beec98515e53f69b4ba0455f8b6;p=thirdparty%2Ffreeswitch.git close the xml handle git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2840 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- 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; } }