From: Jason Ish Date: Wed, 8 Jun 2016 19:56:35 +0000 (-0600) Subject: output-streaming: free thread store on deinit X-Git-Tag: suricata-3.2beta1~354 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8c2c3653bcfaecaaf0e9d7d20b0fd066ac3f9e4;p=thirdparty%2Fsuricata.git output-streaming: free thread store on deinit --- diff --git a/src/output-streaming.c b/src/output-streaming.c index 1b800abd54..6c8e5a066f 100644 --- a/src/output-streaming.c +++ b/src/output-streaming.c @@ -419,10 +419,13 @@ static TmEcode OutputStreamingLogThreadDeinit(ThreadVars *tv, void *thread_data) logger->ThreadDeinit(tv, store->thread_data); } + OutputLoggerThreadStore *next_store = store->next; + SCFree(store); logger = logger->next; - store = store->next; + store = next_store; } + SCFree(op_thread_data); return TM_ECODE_OK; }