提交 45f38f17 authored 作者: Giovanni Maruzzelli's avatar Giovanni Maruzzelli

skypiax: switch_xml_free() the configuration if module failed to load, because…

skypiax: switch_xml_free() the configuration if module failed to load, because otherwise reloadxml will stuck forever (reported by Seven Du)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14415 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 12968962
......@@ -928,6 +928,7 @@ static switch_status_t load_config(int reload_type)
if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) {
ERRORA("open of %s failed\n", SKYPIAX_P_LOG, cf);
running = 0;
switch_xml_free(xml);
return SWITCH_STATUS_TERM;
}
......@@ -1224,6 +1225,7 @@ static switch_status_t load_config(int reload_type)
("Failed to connect to a SKYPE API for interface_id=%d, no SKYPE client running, please (re)start Skype client. Skypiax exiting\n",
SKYPIAX_P_LOG, interface_id);
running = 0;
switch_xml_free(xml);
return SWITCH_STATUS_FALSE;
}
......@@ -1247,6 +1249,7 @@ static switch_status_t load_config(int reload_type)
interface_id, globals.SKYPIAX_INTERFACES[interface_id].skype_user,
globals.SKYPIAX_INTERFACES[interface_id].skype_user);
running = 0;
switch_xml_free(xml);
return SWITCH_STATUS_FALSE;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论