mod_fifo: Fix memory leak of xml structure

If getting the DB handle failed during the load or reload of the
configuration, we would leak the XML structure we just allocated for
the configuration.
This commit is contained in:
Travis Cross 2014-05-25 14:48:47 +00:00
parent c6e90e0111
commit 2068b284cc
1 changed files with 1 additions and 1 deletions

View File

@ -4628,10 +4628,10 @@ static switch_status_t load_config(int reload, int del_all)
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "%s configured\n", node->name);
}
}
switch_xml_free(xml);
done:
switch_xml_free(xml);
if (reload) {
fifo_node_t *node;
switch_mutex_lock(globals.mutex);