Don't write to /tmp/refs when REF_DEBUG is not defined.
authorDavid M. Lee <dlee@digium.com>
Fri, 13 Sep 2013 20:55:09 +0000 (20:55 +0000)
committerDavid M. Lee <dlee@digium.com>
Fri, 13 Sep 2013 20:55:09 +0000 (20:55 +0000)
commit03c7857375b475883a81141da05ca2d2376bf066
tree5530c6aee1dbe9ab83fc4bf5d130e37591d20c0f
parent9deb416397ff8df1fe9a4bd13da88c7bb6002db8
Don't write to /tmp/refs when REF_DEBUG is not defined.

If MALLOC_DEBUG is enabled, then the debug destructor for the container
is used, which would erroneously write to /tmp/refs. This patch only
uses the debug destructor if ref_debug is used.

(closes issue ASTERISK-22536)
........

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

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

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

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