git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12267 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2009-02-24 23:30:17 +00:00
parent 504876c9d7
commit e5f6e42eec

View File

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