newblock = (*g->frealloc)(g->ud, block, osize, nsize);
[...]
if (newblock == NULL) luaD_throw(L, LUA_ERRMEM);[...] “newblock” is evidently set to NULL and the code calls luaD_throw() which deals with the error.
luaD_throw(L, LUA_ERRMEM);
“newblock” is evidently set to NULL and the code calls luaD_throw() which deals with the error.