[asterisk-dev] [Code Review] 4125: app_queue: fix a couple leaks to struct call_queue in set_member_value

Kevin Harwell reviewboard at asterisk.org
Wed Oct 29 09:47:09 CDT 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/4125/#review13615
-----------------------------------------------------------

Ship it!


One more queue_unref(q) needed and this should be good to go.


/branches/11/apps/app_queue.c
<https://reviewboard.asterisk.org/r/4125/#comment24128>

    Glancing at the nearby code I noticed another leak.


- Kevin Harwell


On Oct. 28, 2014, 11:52 p.m., Corey Farrell wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/4125/
> -----------------------------------------------------------
> 
> (Updated Oct. 28, 2014, 11:52 p.m.)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Bugs: ASTERISK-24466
>     https://issues.asterisk.org/jira/browse/ASTERISK-24466
> 
> 
> Repository: Asterisk
> 
> 
> Description
> -------
> 
> set_member_value has a couple leaks to references in the variable q found through testsuite tests/queues/set_penalty.
> 
> This change also removes the REF_DEBUG_ONLY_QUEUES compiler declaration, this is no longer possible with the updated REF_DEBUG code.
> 
> 
> Diffs
> -----
> 
>   /branches/11/apps/app_queue.c 426569 
> 
> Diff: https://reviewboard.asterisk.org/r/4125/diff/
> 
> 
> Testing
> -------
> 
> All tests/queues/set_penalty no longer leaks any references (verifies first added queue_unref).
> 
> I'm unsure if the second added queue_unref has been tested, but seems like it is needed.
> 
> 
> Thanks,
> 
> Corey Farrell
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20141029/21a7647e/attachment-0001.html>


More information about the asterisk-dev mailing list