Commit a5b77874a3 for asterisk.org

commit a5b77874a30adade2dd4a2caff1e3a66450097cf
Author: George Joseph <gjoseph@sangoma.com>
Date:   Thu Apr 16 06:44:13 2026 -0600

    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

diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c
index c99bab405b..dc66f84770 100644
--- a/res/res_rtp_asterisk.c
+++ b/res/res_rtp_asterisk.c
@@ -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);
 	}