detect/lua: Unregister object during free

This commit removes the registration for the object being freed.
pull/4863/head
Jeff Lucovsky 6 years ago committed by Victor Julien
parent d3a65fe156
commit e8ad67fa4f

@ -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);
}
}

Loading…
Cancel
Save