提交 eb109a85 authored 作者: Mathieu Rene's avatar Mathieu Rene

mod_dingaling: fix leak in chat_send

上级 10cb487c
......@@ -521,6 +521,7 @@ static switch_status_t chat_send(const char *proto, const char *from, const char
}
}
ldl_handle_send_msg(profile->handle, (char *) from, (char *) to, NULL, switch_str_nil(body));
switch_safe_free(ffrom);
} else {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid Profile %s\n", f_host ? f_host : "NULL");
return SWITCH_STATUS_FALSE;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论