]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_rtp_asterisk: Destroy ioqueue in rtp_ioqueue_thread_destroy. master
authorGeorge Joseph <gjoseph@sangoma.com>
Thu, 16 Apr 2026 12:44:13 +0000 (06:44 -0600)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Thu, 16 Apr 2026 18:25:55 +0000 (18:25 +0000)
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

res/res_rtp_asterisk.c

index c99bab405b077299007e052322f4fa061f0d41ef..dc66f84770ff6a28da5337984f52f399dc5fee4b 100644 (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);
        }