[asterisk-dev] [Code Review] Audit of ao2_iterator_init() usage for v1.8

Kevin Fleming reviewboard at asterisk.org
Fri Jan 27 09:26:48 CST 2012


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

Ship it!


Other than some relatively minor comments, this looks fine.


/branches/1.8/apps/app_queue.c
<https://reviewboard.asterisk.org/r/1697/#comment9875>

    What was the reasoning for moving this (and the other) 'unlock' operations?



/branches/1.8/apps/app_queue.c
<https://reviewboard.asterisk.org/r/1697/#comment9876>

    How is this better?


- Kevin


On Jan. 26, 2012, 8:03 p.m., rmudgett wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/1697/
> -----------------------------------------------------------
> 
> (Updated Jan. 26, 2012, 8:03 p.m.)
> 
> 
> Review request for Asterisk Developers and Mark Michelson.
> 
> 
> Summary
> -------
> 
> I audited the usage of the ao2_iterator_init() function in the v1.8 code base.
> 
> I checked that the iterator was destroyed and that the current iteration object reference was not leaked.
> 
> This patch fixes numerous reference leaks and missing ao2_iterator_destroy() calls as a result.
> 
> 
> Diffs
> -----
> 
>   /branches/1.8/apps/app_chanspy.c 352861 
>   /branches/1.8/apps/app_queue.c 352861 
>   /branches/1.8/channels/chan_iax2.c 352861 
>   /branches/1.8/channels/chan_sip.c 352861 
>   /branches/1.8/include/asterisk/indications.h 352861 
>   /branches/1.8/main/indications.c 352861 
>   /branches/1.8/main/pbx.c 352861 
>   /branches/1.8/main/taskprocessor.c 352861 
>   /branches/1.8/res/res_odbc.c 352861 
>   /branches/1.8/res/res_srtp.c 352861 
>   /branches/1.8/res/snmp/agent.c 352861 
> 
> Diff: https://reviewboard.asterisk.org/r/1697/diff
> 
> 
> Testing
> -------
> 
> It compiles. :)
> 
> 
> Thanks,
> 
> rmudgett
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20120127/9243430b/attachment.htm>


More information about the asterisk-dev mailing list