提交 a83fde35 authored 作者: Michael Jerris's avatar Michael Jerris

block of code in here twice was writing over expanded, causing it to potentially leak

上级 59734d8e
...@@ -345,15 +345,6 @@ static char *get_bridge_data(switch_memory_pool_t *pool, char *dialed_number, ch ...@@ -345,15 +345,6 @@ static char *get_bridge_data(switch_memory_pool_t *pool, char *dialed_number, ch
} }
} }
if (session && (switch_string_var_check_const(data) || switch_string_has_escaped_data(data))) {
expanded = switch_channel_expand_variables(switch_core_session_get_channel(session), data);
if (expanded == data ) {
expanded = NULL;
} else {
data = switch_core_strdup( pool, expanded );
}
}
switch_safe_free(expanded); switch_safe_free(expanded);
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Returning Dialstring %s\n", data); switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Returning Dialstring %s\n", data);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论