diff --git a/apps/app_queue.c b/apps/app_queue.c index 976c46473f..a12c867a18 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -1664,6 +1664,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); ast_free(oo); } }