[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: out of memory
- From: Julien Cugniere <jcugniere@...>
- Date: Sat, 05 Oct 2002 10:34:30 +0200
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!