]> git.ipfire.org Git - thirdparty/asterisk.git/commit
core: Add AO2_ALLOC_OPT_NO_REF_DEBUG option.
authorCorey Farrell <git@cfware.com>
Sun, 22 Sep 2019 21:59:54 +0000 (17:59 -0400)
committerCorey Farrell <git@cfware.com>
Mon, 23 Sep 2019 17:34:33 +0000 (13:34 -0400)
commitec712cfab24552406a7e104bd8ab02201f78c233
tree9705d6744cd1dd9d025f452695a157a09efdd96b
parent6e75e2565d35ef8f46c6f67de41097374f987584
core: Add AO2_ALLOC_OPT_NO_REF_DEBUG option.

Previous to this patch passing a NULL tag to ao2_alloc or ao2_ref based
functions would result in the reference not being logged under
REF_DEBUG.  This could sometimes cause inaccurate logging if NULL was
accidentally passed to a reference action.  Now reference logging is
only disabled by option passed to the allocation method.

Change-Id: I3c17d867d901d53f9fcd512bef4d52e342637b54
include/asterisk/astobj2.h
main/astobj2.c
main/astobj2_container.c
main/astobj2_hash.c
main/astobj2_rbtree.c