Ensure REF_DEBUG records entrys for attempts to ao2_ref an invalid object
authorCorey Farrell <git@cfware.com>
Fri, 27 Jun 2014 19:27:59 +0000 (19:27 +0000)
committerCorey Farrell <git@cfware.com>
Fri, 27 Jun 2014 19:27:59 +0000 (19:27 +0000)
commit024316fa3a2725a8a04f4bd38e292b658e67f9b8
tree9f76f2e5d9f3caa2b5abc7af147b0286f42cdb21
parent9a495107b86b80a4bd804b2ddd7c4d7997ee6a3c
Ensure REF_DEBUG records entrys for attempts to ao2_ref an invalid object

This change ensures that __ao2_ref_debug writes to ref_log when given a
non-NULL pointer to an invalid ao2 object.  This is to ensure that we
record any attempt manipulate references of already freed objects.

ASTERISK-23948 #close
Reported by: Corey Farrell
Review: https://reviewboard.asterisk.org/r/3677/
........

Merged revisions 417500 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 417505 from http://svn.asterisk.org/svn/asterisk/branches/11
........

Merged revisions 417509 from http://svn.asterisk.org/svn/asterisk/branches/12

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