]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Don't write to /tmp/refs when REF_DEBUG is not defined.
authorDavid M. Lee <dlee@digium.com>
Fri, 13 Sep 2013 20:49:33 +0000 (20:49 +0000)
committerDavid M. Lee <dlee@digium.com>
Fri, 13 Sep 2013 20:49:33 +0000 (20:49 +0000)
commitfb51ba1688d2bc8b5d4f24ea1c2139603fdf62f4
tree6ea1ff792ea0743db7f298a5db19019b8be9537e
parent4ffd79c1023e9c38d45a877c50643edfff3b3a05
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

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