From: Russell Bryant Date: Tue, 11 Sep 2007 14:21:17 +0000 (+0000) Subject: Add a missing unref of a queue member in an error handling block X-Git-Tag: 1.4.12~111 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aa3a71d3bf2f73fca41a7ab155aeab079a5c8264;p=thirdparty%2Fasterisk.git Add a missing unref of a queue member in an error handling block git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82238 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index 683ee75a7f..9c973e082c 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);