]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
output-streaming: free thread store on deinit
authorJason Ish <ish@unx.ca>
Wed, 8 Jun 2016 19:56:35 +0000 (13:56 -0600)
committerVictor Julien <victor@inliniac.net>
Mon, 19 Sep 2016 11:47:52 +0000 (13:47 +0200)
src/output-streaming.c

index 1b800abd5481dcf6a3f3aa1584293f2bbc888963..6c8e5a066f24094aaacbd366e9f97db294362b88 100644 (file)
@@ -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;
 }