forked from Mirrors/freeswitch
FS-11846 [mod_kazoo] fix queue cleanup
This commit is contained in:
parent
9c131f2755
commit
90438ffe78
|
@ -349,8 +349,9 @@ static void *SWITCH_THREAD_FUNC event_stream_loop(switch_thread_t *thread, void
|
||||||
|
|
||||||
/* clear and destroy any remaining queued events */
|
/* clear and destroy any remaining queued events */
|
||||||
while (switch_queue_trypop(event_stream->queue, &pop) == SWITCH_STATUS_SUCCESS) {
|
while (switch_queue_trypop(event_stream->queue, &pop) == SWITCH_STATUS_SUCCESS) {
|
||||||
switch_event_t *event = (switch_event_t *) pop;
|
ei_x_buff *ebuf = (ei_x_buff *) pop;
|
||||||
switch_event_destroy(&event);
|
ei_x_free(ebuf);
|
||||||
|
switch_safe_free(ebuf);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* remove the acceptor pollset */
|
/* remove the acceptor pollset */
|
||||||
|
|
Loading…
Reference in New Issue