]> git.ipfire.org Git - thirdparty/asterisk.git/commit
config: Fix SEGV in unit test with MALLOC_DEBUG
authorGeorge Joseph <george.joseph@fairview5.com>
Tue, 14 Oct 2014 20:45:53 +0000 (20:45 +0000)
committerGeorge Joseph <george.joseph@fairview5.com>
Tue, 14 Oct 2014 20:45:53 +0000 (20:45 +0000)
commitca474c25e46390d4427f0c19fefa8f0b864f4ee8
tree3d1d1ff009bda14452cfb7de345456e3a5b5f44e
parent68d3aeeb12509c039747524da0dd8b314b9928ae
config: Fix SEGV in unit test with MALLOC_DEBUG

With MALLOC_DEBUG the /main/config config_basic_ops test was causing a
SEGV while doing an ast_category_delete in an ast_category_browse loop.
Apparently this never worked but was also never tested.  I removed the
test, added 2 notes to config.h indicating that it's not supported and
added a few lines of code to ast_category_delete to prevent the SEGV
should someone attempt it in the future.

Tested-by: George Joseph
Review: https://reviewboard.asterisk.org/r/4078/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@425525 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/config.h
main/config.c
tests/test_config.c