1
0
mirror of https://github.com/lua/lua synced 2026-06-08 15:34:49 +00:00

Bug: Loading a binary chunk does not run the GC

This commit is contained in:
Roberto I
2026-04-01 14:59:41 -03:00
parent 51269bd783
commit f1bb2773bb
+1
View File
@@ -1122,6 +1122,7 @@ LUA_API int lua_load (lua_State *L, lua_Reader reader, void *data,
ZIO z;
TStatus status;
lua_lock(L);
luaC_checkGC(L);
if (!chunkname) chunkname = "?";
luaZ_init(L, &z, reader, data);
status = luaD_protectedparser(L, &z, chunkname, mode);