diff --git a/src/detect-lua.c b/src/detect-lua.c index 5d0feeaf11..9942e657a0 100644 --- a/src/detect-lua.c +++ b/src/detect-lua.c @@ -1120,6 +1120,8 @@ static void DetectLuaFree(DetectEngineCtx *de_ctx, void *ptr) if (lua->filename) SCFree(lua->filename); + DetectUnregisterThreadCtxFuncs(de_ctx, NULL, lua, "lua"); + SCFree(lua); } }