From 9482a6da39ab05be604668a6d7088832ec587781 Mon Sep 17 00:00:00 2001 From: David Vossel Date: Wed, 2 Dec 2009 19:03:01 +0000 Subject: [PATCH] fixes app_queue ao2 error (closes issue #16369) Reported by: vrban Patches: queue_issue_1.4.diff uploaded by dvossel (license 671) Tested by: dvossel git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@232444 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_queue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/app_queue.c b/apps/app_queue.c index 11b4a9b9bc..763f88f3a5 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -1947,7 +1947,7 @@ static int ring_entry(struct queue_ent *qe, struct callattempt *tmp, int *busies ao2_lock(qe->parent); qe->parent->rrpos++; - ao2_unlock(&qe->parent); + ao2_unlock(qe->parent); (*busies)++; return 0; @@ -2173,7 +2173,7 @@ static void record_abandoned(struct queue_ent *qe) qe->parent->name, qe->chan->uniqueid, qe->pos, qe->opos, (int)(time(NULL) - qe->start)); qe->parent->callsabandoned++; - ao2_unlock(&qe->parent); + ao2_unlock(qe->parent); } /*! \brief RNA == Ring No Answer. Common code that is executed when we try a queue member and they don't answer. */ -- 2.47.3