[asterisk-dev] [Code Review] Fix memory leak, possible crash in sip show peers

Matt Jordan reviewboard at asterisk.org
Tue Feb 14 12:50:45 CST 2012


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

(Updated Feb. 14, 2012, 12:50 p.m.)


Review request for Asterisk Developers, Mark Michelson and rmudgett.


Changes
-------

Take 2 of this, basing the approach on Kevin's suggestion of using a snapshot of the container.  This patch adds a new iterator flag, AO2_ITERATOR_SNAPSHOT, that when passed to ao2_iterator_init, will create a copy of the container and associate it with the passed back iterator.



More information about the asterisk-dev mailing list