From 9b71f567287b38501e52c4094e3d555cbec1b891 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Tue, 16 Nov 2021 23:15:13 -0600 Subject: [PATCH] modbus: free eve thread context on deinit Was triggering ASAN leak detection. --- src/output-json-modbus.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/output-json-modbus.c b/src/output-json-modbus.c index 1918f0289..a952e99aa 100644 --- a/src/output-json-modbus.c +++ b/src/output-json-modbus.c @@ -132,6 +132,7 @@ static TmEcode JsonModbusLogThreadDeinit(ThreadVars *t, void *data) if (thread == NULL) { return TM_ECODE_OK; } + FreeEveThreadCtx(thread->ctx); SCFree(thread); return TM_ECODE_OK; } -- 2.47.3