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:
George Joseph
2026-04-16 06:44:13 -06:00
committed by Asterisk Development Team
parent d80869c4e4
commit 00cf557e66

View File

@@ -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);
}