aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_queue.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-11 14:21:17 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-11 14:21:17 +0000
commitfa335f6f3d62561ab8b2c5fb9b9c4f1ab131ed87 (patch)
treeb44b833df8566c8e9b54562bc7061a1e20147262 /apps/app_queue.c
parent37c25bb5d409e739153e827d070fa0aa4722fdb4 (diff)
Add a missing unref of a queue member in an error handling block
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82238 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_queue.c')
-rw-r--r--apps/app_queue.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 683ee75a7..9c973e082 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -2488,6 +2488,7 @@ static int try_calling(struct queue_ent *qe, const char *options, char *announce
struct callattempt *tmp = ast_calloc(1, sizeof(*tmp));
if (!tmp) {
+ ao2_ref(cur, -1);
ast_mutex_unlock(&qe->parent->lock);
if (use_weight)
AST_LIST_UNLOCK(&queues);