diff --git a/apps/app_queue.c b/apps/app_queue.c index 976c46473f1e9cd61628fd61076b6140709bf2c9..a12c867a18833d765adfcd0b3cf430b5a2a00013 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); } }