]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fix reference and container leaks when running 'astobj2 test.'
authorSean Bright <sean@malleable.com>
Wed, 15 Dec 2010 21:28:29 +0000 (21:28 +0000)
committerSean Bright <sean@malleable.com>
Wed, 15 Dec 2010 21:28:29 +0000 (21:28 +0000)
commitd644f402d0b5baaf6e032f3954a00e5751235266
tree9a9422610cc86f8b2bc6e440f44eba952e4ed146
parent0543f25d7ca9fa347178c9661c87fe86a65f2d17
Fix reference and container leaks when running 'astobj2 test.'

We need to make sure that ao2_iterator_destroy is called once for each time that
ao2_iterator_init is called.  Also make sure to unref a newly allocated object
that we've linked into a container.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@298345 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/astobj2.c