mirror of
https://github.com/asterisk/asterisk.git
synced 2026-06-09 11:55:19 +00:00
res_rtp_asterisk: Destroy ioqueue in rtp_ioqueue_thread_destroy.
The rtp_ioqueue_thread_destroy() function was destroying the the ioqueue thread and releasing its pool but not destroying the ioqueue itself. This was causing the ioqueue's epoll file descriptor to leak. Resolves: #1867
This commit is contained in:
committed by
Asterisk Development Team
parent
d80869c4e4
commit
00cf557e66
@@ -1537,6 +1537,7 @@ static void rtp_ioqueue_thread_destroy(struct ast_rtp_ioqueue_thread *ioqueue)
|
||||
pj_pool_t *temp_pool = ioqueue->pool;
|
||||
|
||||
ioqueue->pool = NULL;
|
||||
pj_ioqueue_destroy(ioqueue->ioqueue);
|
||||
pj_pool_release(temp_pool);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user