fix leak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12332 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
e06b1bcc66
commit
9b2b1f3691
|
@ -279,7 +279,9 @@ SWITCH_DECLARE(switch_status_t) switch_channel_queue_dtmf(switch_channel_t *chan
|
||||||
*dt = new_dtmf;
|
*dt = new_dtmf;
|
||||||
|
|
||||||
while (switch_queue_trypush(channel->dtmf_queue, dt) != SWITCH_STATUS_SUCCESS) {
|
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) {
|
if (++x > 100) {
|
||||||
status = SWITCH_STATUS_FALSE;
|
status = SWITCH_STATUS_FALSE;
|
||||||
free(dt);
|
free(dt);
|
||||||
|
|
Loading…
Reference in New Issue