Re: Memory allocation errors

Alan Cox (
Tue, 28 Jan 1997 18:54:10 +0000 (GMT)

> >From info received here, I decided to make my own check of a possible
> memory allocation bug. I can confirm that the bug does, indeed, exist.

libc malloc does not return memory to the kernel instead it uses a local
pool. Thats standard for almost all Unix libc malloc implementations as
very few applications have the property you describe and the malloc heap
tends to have freed holes in it not a single giant free chunk.

You can use mmap() to get a block of memory you can hand back if you wish