]> 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:41 +0000 (12:34 -0500)
commitfec6e1bd87cb32682b78a62f745ec936df2f2ae5
tree1036c3fa5ec59a5ea3776339bf25d49e5ba0dce9
parenta687c7919d43ffb8caa1ff3f2179e44bc3d94013
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