aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorseanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b>2010-07-28 16:51:11 +0000
committerseanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b>2010-07-28 16:51:11 +0000
commit8d3494a5b0eb1a3b4347ed6e97124081124b2cb7 (patch)
tree4b064a95877c9fc67ae8932c1656469d94bf32a3
parent58612509f45f449839e4a45b359ae236368d274f (diff)
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: http://svn.digium.com/svn/asterisk/branches/1.6.2@280160 f38db490-d61c-443f-a65b-d21fe96a405b
-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 63e2931e3..073d7ef3e 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;
}