forked from Mirrors/freeswitch
doh almost added a leak today
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11910 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
29b52454b5
commit
a818ec8837
@ -1557,6 +1557,7 @@ SWITCH_DECLARE(switch_status_t) switch_xml_locate(const char *section,
|
|||||||
*root = switch_xml_parse_str(x, strlen(x));
|
*root = switch_xml_parse_str(x, strlen(x));
|
||||||
*node = *root;
|
*node = *root;
|
||||||
switch_xml_free(xml);
|
switch_xml_free(xml);
|
||||||
|
free(x);
|
||||||
} else {
|
} else {
|
||||||
*node = tag;
|
*node = tag;
|
||||||
*root = xml;
|
*root = xml;
|
||||||
|
Loading…
Reference in New Issue
Block a user