diff options
-rw-r--r-- | apps/app_queue.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index 976c46473..a12c867a1 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); } } |