mirror of https://github.com/OISF/suricata
conf: init parser after check with stat()
Commit changes are made to avoid possible memory leaks. If the parser is initialized before configuration file checking, there was no deinit call before function return. Do check config file existance and type before YAML parser initialization, so we don't need to deinit parser before exiting the function. Bug: #7302pull/11948/head
parent
1591ad4408
commit
87e6e9374f
Loading…
Reference in New Issue