Modified: freeswitch/trunk/contrib/mod/xml_int/mod_xml_odbc/mod_xml_odbc.c (14139 => 14140)
--- freeswitch/trunk/contrib/mod/xml_int/mod_xml_odbc/mod_xml_odbc.c 2009-07-06 19:30:54 UTC (rev 14139)
+++ freeswitch/trunk/contrib/mod/xml_int/mod_xml_odbc/mod_xml_odbc.c 2009-07-06 21:42:09 UTC (rev 14140)
@@ -499,8 +499,8 @@
goto done;
}
-// is this allowed ? or should I copy the entire tree ? can I register a callback function that is called when reloadxml is done ?
- globals.templates_tag = templates_tag;
+ /* copy the templates to globals.templates_tag */
+ memcpy(&globals.templates_tag, &templates_tag, sizeof(templates_tag));
/* set a default globals.max_render_template_count to avoid loops in render_template */
globals.max_render_template_count = 32;
@@ -586,6 +586,7 @@
status = SWITCH_STATUS_SUCCESS;
done:
+ switch_xml_free(xml);
return status;
}