From: Sean Bright Date: Wed, 28 Jul 2010 16:51:11 +0000 (+0000) Subject: Plug a reference leak in app_queue when adding members dynamically. X-Git-Tag: 1.6.2.12-rc1~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=950cbd80a5d1458dee9b9f755b604b78ec39e6ab;p=thirdparty%2Fasterisk.git Plug a reference leak in app_queue when adding members dynamically. (closes issue #17738) Reported by: bobwienholt Patches: issue17738.patch uploaded by bobwienholt (license 950) Tested by: bobwienholt, seanbright git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@280160 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index 63e2931e32..073d7ef3e2 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -4518,6 +4518,7 @@ static int add_to_queue(const char *queuename, const char *interface, const char } ao2_unlock(q); ao2_unlock(queues); + queue_t_unref(q, "Expiring temporary reference"); return res; }