]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Reference leaks in app_queue.
authorRichard Mudgett <rmudgett@digium.com>
Mon, 22 Aug 2011 19:32:19 +0000 (19:32 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Mon, 22 Aug 2011 19:32:19 +0000 (19:32 +0000)
commitdef9e8fe4582f164c394ae8cc3c02167ec0beeb1
treef57e95f83aae099549a8ff6efe298919ec7bdbed
parent56549c96abe58bc86bc82f35f0a77a4e7c607f4f
Reference leaks in app_queue.

* Fixed load_realtime_queue() leaking a queue reference when it overwrites
q when processing a realtime queue.
(issue ASTERISK-18265)

* Make join_queue() unreference the queue returned by
load_realtime_queue() when it is done with the pointer.  The
load_realtime_queue() returns a reference to the just loaded realtime
queue.

* Fixed queues container reference leak in queues_data_provider_get().

* queue_unref() should not return q that was just unreferenced.

* Made logic in __queues_show() and queues_data_provider_get() when
calling load_realtime_queue() easier to understand.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@332874 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_queue.c