提交 a06ae399 authored 作者: Anthony Minessale's avatar Anthony Minessale

FSCORE-511

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15876 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 cd1824e1
...@@ -610,7 +610,7 @@ static vm_profile_t * load_profile(const char *profile_name) ...@@ -610,7 +610,7 @@ static vm_profile_t * load_profile(const char *profile_name)
vm_profile_t *profile = NULL; vm_profile_t *profile = NULL;
switch_xml_t x_profiles, x_profile, cfg, xml, x_email, param; switch_xml_t x_profiles, x_profile, cfg, xml, x_email, param;
switch_event_t *event = NULL; switch_event_t *event = NULL;
switch_cache_db_handle_t *dbh; switch_cache_db_handle_t *dbh = NULL;
if (!(xml = switch_xml_open_cfg(global_cf, &cfg, NULL))) { if (!(xml = switch_xml_open_cfg(global_cf, &cfg, NULL))) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", global_cf); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", global_cf);
...@@ -707,7 +707,9 @@ static vm_profile_t * load_profile(const char *profile_name) ...@@ -707,7 +707,9 @@ static vm_profile_t * load_profile(const char *profile_name)
} }
end: end:
switch_cache_db_release_db_handle(&dbh); switch_cache_db_release_db_handle(&dbh);
if (xml) { if (xml) {
switch_xml_free(xml); switch_xml_free(xml);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论