mirror of
https://github.com/lua/lua
synced 2026-09-26 16:17:11 +03:00
Bug: Loading a binary chunk does not run the GC
This commit is contained in:
parent
af19891bce
commit
b18086ea34
1 changed files with 1 additions and 0 deletions
1
lapi.c
1
lapi.c
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue