提交 2068b284 authored 作者: Travis Cross's avatar Travis Cross

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.
上级 c6e90e01
......@@ -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);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论