]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fix crash with res_fax when MALLOC_DEBUG and "core stop gracefully" are used.
authorRichard Mudgett <rmudgett@digium.com>
Thu, 8 Sep 2011 22:27:40 +0000 (22:27 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 8 Sep 2011 22:27:40 +0000 (22:27 +0000)
commit2fb25c3aead43f2aff7c9913dc286e55baabfe9a
tree98f2ed8aa5a766e404bd35416b02448a5ed7e158
parentf105f3e5792832776f4d059585605b0206fbfa3d
Fix crash with res_fax when MALLOC_DEBUG and "core stop gracefully" are used.

Asterisk crashes if MALLOC_DEBUG is enabled when res_fax tries to
unregister its logger level.

* Make ast_logger_unregister_level() use ast_free() instead of free().
When MALLOC_DEBUG is enabled, ast_free() does not degenerate into a call
to free().  Therefore, if you allocated memory with a form of ast_malloc
you must free it with ast_free.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@334953 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/logger.c