lua-users home
lua-l archive

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

Edgar Toernig wrote:
I found the problem.  At least here it's a bug in realloc(x,0).  It's
not an alias for free(x).  It truncates x to a fixed small size (and
even returns that address).  Of course, that will prohibit any defrag-
mentation.  Replacing the freeing l_realloc in lmem.c by a free(block)
cures the problem.

I confirm that this solves the problem for me too, both on djgpp (gcc 2.95.2) and mingw32 (gcc 3.2). Thanks a lot!

Julien Cugniere