]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
close the xml handle
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 27 Sep 2006 00:50:38 +0000 (00:50 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 27 Sep 2006 00:50:38 +0000 (00:50 +0000)
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

index 4663211ba1fdfdc394b9d059277a00e7c29cb45c..a293245fafbf7b788f4214ff45dffde0a0991afc 100644 (file)
@@ -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;
                }
        }