From: Jeff Lucovsky Date: Wed, 22 Apr 2020 23:12:26 +0000 (-0400) Subject: detect/lua: Unregister object during free X-Git-Tag: suricata-6.0.0-beta1~480 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8ad67fa4f4460a23e6b38f0fc391123269acb60;p=thirdparty%2Fsuricata.git detect/lua: Unregister object during free This commit removes the registration for the object being freed. --- 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); } }