[asterisk-dev] [Code Review] 3089: Presenting AO2_ITERATOR_SAFE_LOOP_START() for ao2_iterator looping safety.

rmudgett reviewboard at asterisk.org
Mon Jan 13 12:03:53 CST 2014


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

(Updated Jan. 13, 2014, 12:03 p.m.)


Status
------

This change has been discarded.


Review request for Asterisk Developers.


Repository: Asterisk


Description
-------

Due to repeated errors in people remembering to call ao2_iterator_destroy() I have created the AO2_ITERATOR_SAFE_LOOP_START() / AO2_ITERATOR_SAFE_LOOP_END macros.  Usage examples are documented where these macros are declared.


Diffs
-----

  /branches/12/tests/test_stasis.c 404786 
  /branches/12/include/asterisk/astobj2.h 404786 

Diff: https://reviewboard.asterisk.org/r/3089/diff/


Testing
-------

No memory leaks from running "test execute category /stasis/core/ name cache_dump".


Thanks,

rmudgett

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140113/7df5d0d1/attachment.html>


More information about the asterisk-dev mailing list