From da2809f26c5943640985c6536feacfeb792ceb95 Mon Sep 17 00:00:00 2001 From: seanbright Date: Tue, 26 May 2009 16:39:39 +0000 Subject: Merged revisions 196792 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r196792 | seanbright | 2009-05-26 12:38:54 -0400 (Tue, 26 May 2009) | 2 lines Add a missing unref for queues in handle_statechange. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@196793 f38db490-d61c-443f-a65b-d21fe96a405b --- apps/app_queue.c | 1 + 1 file changed, 1 insertion(+) (limited to 'apps') diff --git a/apps/app_queue.c b/apps/app_queue.c index 82399597c..60cb9412c 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -1051,6 +1051,7 @@ static int handle_statechange(void *datap) } ao2_unlock(q); + ao2_ref(q, -1); } if (found) -- cgit v1.2.3