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
pull/1876/head
George Joseph 5 months ago committed by github-actions[bot]
parent b3728145b2
commit a5b77874a3

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

Loading…
Cancel
Save