lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Thu, May 8, 2014 at 8:50 PM, Leinen, Rick <RLeinen@leviton.com> wrote:

     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.

 


That would imply the allocation failed, i.e. it's run out of memory (or the allocator is broken).

--
Sent from my Game Boy.