mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 20:50:41 +00:00
Merge pull request #1726 in FS/freeswitch from ~LAZEDO/freeswitch:bug/FS-11846 to master
* commit '90438ffe789315bb3000462c9393d16737720476': FS-11846 [mod_kazoo] fix queue cleanup
This commit is contained in:
commit
1fdd0d7134
@ -349,8 +349,9 @@ static void *SWITCH_THREAD_FUNC event_stream_loop(switch_thread_t *thread, void
|
||||
|
||||
/* clear and destroy any remaining queued events */
|
||||
while (switch_queue_trypop(event_stream->queue, &pop) == SWITCH_STATUS_SUCCESS) {
|
||||
switch_event_t *event = (switch_event_t *) pop;
|
||||
switch_event_destroy(&event);
|
||||
ei_x_buff *ebuf = (ei_x_buff *) pop;
|
||||
ei_x_free(ebuf);
|
||||
switch_safe_free(ebuf);
|
||||
}
|
||||
|
||||
/* remove the acceptor pollset */
|
||||
|
Loading…
x
Reference in New Issue
Block a user