提交 9b2b1f36 authored 作者: Mathieu Rene's avatar Mathieu Rene

fix leak

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12332 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 e06b1bcc
......@@ -279,7 +279,9 @@ SWITCH_DECLARE(switch_status_t) switch_channel_queue_dtmf(switch_channel_t *chan
*dt = new_dtmf;
while (switch_queue_trypush(channel->dtmf_queue, dt) != SWITCH_STATUS_SUCCESS) {
switch_queue_trypop(channel->dtmf_queue, &pop);
if (switch_queue_trypop(channel->dtmf_queue, &pop) == SWITCH_STATUS_SUCCESS) {
free(pop);
}
if (++x > 100) {
status = SWITCH_STATUS_FALSE;
free(dt);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论