]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
IRC-000
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 24 Feb 2009 23:30:17 +0000 (23:30 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 24 Feb 2009 23:30:17 +0000 (23:30 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12267 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_xml.c

index 0862d663db127f9ccc57510e90d4ff114f32ceec..53b5f67f07cd1601bfefc8adc56b727edb2deed4 100644 (file)
@@ -1778,6 +1778,12 @@ SWITCH_DECLARE(switch_status_t) switch_xml_locate_user(const char *key,
                switch_event_destroy(&my_params);
        }
 
+       if (status != SWITCH_STATUS_SUCCESS && root && *root) {
+               switch_xml_free(*root);
+               *root = NULL;
+               *domain = NULL;
+       }
+
        return status;
 }