]> git.ipfire.org Git - thirdparty/suricata.git/commit
yaml-loader: fix memory leak on fail include
authorJason Ish <ish@unx.ca>
Mon, 25 Jun 2018 13:08:38 +0000 (07:08 -0600)
committerVictor Julien <victor@inliniac.net>
Wed, 27 Jun 2018 11:46:57 +0000 (13:46 +0200)
commit7d5f8295bc78d6268cb66723377c6f3df25354af
tree345ea189a3d397c8caca85f9c4a9e34aeec058fe
parentec0a7b22a5802fa33bd01c484f0a81fddbee4dd9
yaml-loader: fix memory leak on fail include

Redmine issue:
https://redmine.openinfosecfoundation.org/issues/1929

If an include failed to load, either by the file not existing or
a parse error, the file pointer and yaml parser instance were
leaked.
src/conf-yaml-loader.c