From: Victor Julien Date: Tue, 25 Aug 2020 10:35:51 +0000 (+0200) Subject: output/flow: fix deinit after incomplete init X-Git-Tag: suricata-6.0.0-rc1~106 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a015a31073bc5c424edf08aefc45f541e8eca5ba;p=thirdparty%2Fsuricata.git output/flow: fix deinit after incomplete init --- diff --git a/src/output-flow.c b/src/output-flow.c index 40b7e1a37b..1dc4ee9102 100644 --- a/src/output-flow.c +++ b/src/output-flow.c @@ -173,6 +173,9 @@ TmEcode OutputFlowLogThreadInit(ThreadVars *tv, void *initdata, void **data) TmEcode OutputFlowLogThreadDeinit(ThreadVars *tv, void *thread_data) { OutputLoggerThreadData *op_thread_data = (OutputLoggerThreadData *)thread_data; + if (op_thread_data == NULL) + return TM_ECODE_OK; + OutputLoggerThreadStore *store = op_thread_data->store; OutputFlowLogger *logger = list;