lua-users home
lua-l archive

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

> It turns out that realloc() is the only library function that is
> called, and my implementation of realloc() calls malloc() if the
> pointer to the original data is NULL.

First you should check whether the new size is not zero. (malloc(0) does
allocate memory on some systems...)

-- Roberto