Bug: Loading a binary chunk does not run the GC

This commit is contained in:
Roberto I
2026-07-24 11:16:38 -03:00
parent af19891bce
commit b18086ea34

1
lapi.c
View File

@@ -1089,6 +1089,7 @@ LUA_API int lua_load (lua_State *L, lua_Reader reader, void *data,
ZIO z;
int status;
lua_lock(L);
luaC_checkGC(L);
if (!chunkname) chunkname = "?";
luaZ_init(L, &z, reader, data);
status = luaD_protectedparser(L, &z, chunkname, mode);