[Freeswitch-svn] [commit] r3986 - freeswitch/trunk/src/mod/applications/mod_dptools

Freeswitch SVN anthm at freeswitch.org
Thu Jan 18 10:44:02 EST 2007


Author: anthm
Date: Thu Jan 18 10:44:01 2007
New Revision: 3986

Modified:
   freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c

Log:
fix xml parser in ivr menus

Modified: freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c	Thu Jan 18 10:44:01 2007
@@ -405,7 +405,6 @@
 
 		// Open the config from the xml registry
 		if ((cxml = switch_xml_open_cfg(ivr_cf_name, &cfg, NULL)) != NULL) {
-			switch_xml_free(cxml);
 			if ((xml_menus = switch_xml_child(cfg, "menus"))) {
 				xml_menu = switch_xml_find_child(xml_menus, "menu", "name", params);
 
@@ -431,6 +430,7 @@
 					switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Unable to find menu '%s'\n", params);
 				}
 			}
+			switch_xml_free(cxml);
 		} else {
 			switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", ivr_cf_name);
 		}



More information about the Freeswitch-svn mailing list