提交 7ba51970 authored 作者: Anthony Minessale's avatar Anthony Minessale

fix 2 memory leaks detected by valgrind run

上级 179f6b57
......@@ -3339,6 +3339,10 @@ static switch_call_cause_t user_outgoing_channel(switch_core_session_t *session,
done:
if (x_user) {
switch_xml_free(x_user);
}
switch_xml_free(xml);
if (params) {
......
......@@ -164,6 +164,10 @@ static switch_status_t my_on_reporting(switch_core_session_t *session)
write_cdr(sql);
switch_safe_free(sql);
if (expanded_vars != template_str) {
switch_safe_free(expanded_vars);
}
return status;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论