From 92d870d2372e2af7e9cea56bc1c8e6c861f3a7a7 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Sat, 11 Oct 2008 22:16:23 +0000 Subject: [PATCH] tweak git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9977 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_commands/mod_commands.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index 9d05bc0a1e..b29eab3d05 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -256,15 +256,15 @@ SWITCH_STANDARD_API(module_exists_function) SWITCH_STANDARD_API(domain_exists_function) { - switch_xml_t root, domain; + switch_xml_t root = NULL, domain = NULL; if (!switch_strlen_zero(cmd)) { if (switch_xml_locate_domain(cmd, NULL, &root, &domain) == SWITCH_STATUS_SUCCESS) { stream->write_function(stream, "true"); + switch_xml_free(root); } else { stream->write_function(stream, "false"); } - switch_xml_free(root); } return SWITCH_STATUS_SUCCESS;