fix a small memory allocation that was never freed

This commit is contained in:
nhmall
2023-09-23 10:16:07 -04:00
parent 384d726b9c
commit e4c3d87a4c

View File

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