From f8c2c3653bcfaecaaf0e9d7d20b0fd066ac3f9e4 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Wed, 8 Jun 2016 13:56:35 -0600 Subject: [PATCH] output-streaming: free thread store on deinit --- src/output-streaming.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- 2.47.2