Re: Memory use: returning freed memory to the pool

Mike Kilburn (mike@conexio.co.za)
Wed, 29 Jan 1997 15:48:40 +0200 (SAT)


On Tue, 28 Jan 1997, Adam D. Bradley wrote:

> This is, methinks, a libc problem...malloc() will (when necessary) aquire
> a heap of memory w/ a system call, then allocate segments within that
> heap; free() marks those sections of the heap "de-allocated", but does not
> return it to the OS until the program exits.

Doesnt the "new" malloc in libc 5.3.12 returns memory to the OS when
free is called?