]> git.ipfire.org Git - thirdparty/suricata.git/commit
config-test: fix memory leak detect by ASAN
authorEric Leblond <eric@regit.org>
Sun, 8 May 2016 22:06:57 +0000 (00:06 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 9 May 2016 18:30:01 +0000 (20:30 +0200)
commite29e9056cb83de896d5b06fcf4d049169750901e
tree73fde3c45ad76ffc25d149e09250ca05151a15e7
parentbf551ace4ef2e5a116184f0e77d17e6b10b0535c
config-test: fix memory leak detect by ASAN

NSS library was not deinit at exit resulting in memory leak. As
it is useless for a config test, the patch updates the code so it
is not initialized.

Patch also calls MagicDeinit to free memory used by libmagic.
src/suricata.c