mirror of https://github.com/asterisk/asterisk
ao2_replace() bumps the reference count of the object that is doing the replacing, which is not what we want. We just want to drop the old ref on the old object and update the pointer to point to the new object. Pointed out by George Joseph in #asterisk-dev Change-Id: Ie8167ed3d4b52b9d1ea2d785f885e8c27206743dpull/23/head
parent
8c247e2a94
commit
df37b8181c
Loading…
Reference in new issue