From e4c3d87a4c60aa6f03f87764c8a0224dfd766751 Mon Sep 17 00:00:00 2001 From: nhmall Date: Sat, 23 Sep 2023 10:16:07 -0400 Subject: [PATCH] fix a small memory allocation that was never freed --- src/nhlua.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nhlua.c b/src/nhlua.c index 5b644d172..3efc9d385 100644 --- a/src/nhlua.c +++ b/src/nhlua.c @@ -1230,6 +1230,7 @@ restore_luadata(NHFILE *nhfp) if (!gl.luacore) l_nhcore_init(); luaL_loadstring(gl.luacore, lua_data); + free(lua_data); nhl_pcall(gl.luacore, 0, 0); }