[Freeswitch-svn] [commit] r12268 - freeswitch/trunk/src
FreeSWITCH SVN
anthm at freeswitch.org
Tue Feb 24 16:46:51 PST 2009
Author: anthm
Date: Tue Feb 24 18:46:51 2009
New Revision: 12268
Log:
FSCORE-309
Modified:
freeswitch/trunk/src/switch_xml.c
Modified: freeswitch/trunk/src/switch_xml.c
==============================================================================
--- freeswitch/trunk/src/switch_xml.c (original)
+++ freeswitch/trunk/src/switch_xml.c Tue Feb 24 18:46:51 2009
@@ -1552,10 +1552,13 @@
if ((conf = switch_xml_find_child(xml, "section", "name", section)) && (tag = switch_xml_find_child(conf, tag_name, key_name, key_value))) {
if (clone) {
- char *x = switch_xml_toxml(tag, SWITCH_FALSE);
+ char *x;
+ switch_mutex_lock(XML_LOCK);
+ x = switch_xml_toxml(tag, SWITCH_FALSE);
switch_assert(x);
*root = switch_xml_parse_str(x, strlen(x));
*node = *root;
+ switch_mutex_unlock(XML_LOCK);
switch_xml_free(xml);
} else {
*node = tag;
More information about the Freeswitch-svn
mailing list