diff --git a/apps/app_queue.c b/apps/app_queue.c index 03f15e1eec..557861685f 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -1566,6 +1566,8 @@ static void hangupcalls(struct callattempt *outgoing, struct ast_channel *except ast_hangup(outgoing->chan); oo = outgoing; outgoing = outgoing->q_next; + if (oo->member) + ao2_ref(oo->member, -1); free(oo); } }