提交 9c323470 authored 作者: Rupa Schomaker's avatar Rupa Schomaker

fix memory leak on each sql execution


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11611 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 9bcc841b
...@@ -281,6 +281,7 @@ static switch_status_t route_lookup(char *dn, easyroute_results_t *results, int ...@@ -281,6 +281,7 @@ static switch_status_t route_lookup(char *dn, easyroute_results_t *results, int
#else #else
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "mod_easyroute requires core ODBC support. Please refer to the documentation on how to enable this\n"); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "mod_easyroute requires core ODBC support. Please refer to the documentation on how to enable this\n");
#endif #endif
switch_safe_free(sql);
if (globals.mutex){ if (globals.mutex){
switch_mutex_unlock(globals.mutex); switch_mutex_unlock(globals.mutex);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论