astobj2 unit test and bug fix
authorDavid Vossel <dvossel@digium.com>
Thu, 11 Feb 2010 18:42:25 +0000 (18:42 +0000)
committerDavid Vossel <dvossel@digium.com>
Thu, 11 Feb 2010 18:42:25 +0000 (18:42 +0000)
commit9478670527b70107724dcb2cf01dc3e5d09c1803
tree1b846b2d9f4e5959d77c76a3d9d8c6812ce90dac
parent1321748c19228e051a8db1dd497f10e1d6e55e20
astobj2 unit test and bug fix

A bug was discovered during the creation of the astobj2 unit test.
When OBJ_MULTIPLE | OBJ_UNLINK is used, the objects being returned
had a ref count issue.  This patch resolves that.

Review: https://reviewboard.asterisk.org/r/496/

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@246299 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/astobj2.c
tests/test_astobj2.c [new file with mode: 0644]