From: Sean Bright Date: Tue, 26 May 2009 16:38:54 +0000 (+0000) Subject: Add a missing unref for queues in handle_statechange. X-Git-Tag: 11.0.0-beta1~4820 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7ee6e9f4cecc42deb69a32e74f9dcea81ded4bed;p=thirdparty%2Fasterisk.git Add a missing unref for queues in handle_statechange. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@196792 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index 9e0519f8dc..d19f28368c 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -1216,6 +1216,7 @@ static int handle_statechange(void *datap) } ao2_unlock(q); + ao2_ref(q, -1); } if (found)