From: "Gerald A. Feldman" <"gafNoSPAM"@mediaone.net (Remove NoSpam)>
Subject: Re: How do you release memory back to the kernel in C
Date: 1998/05/23 [thread overview]
Message-ID: <6k72vp$a7f$1@ndnws01.ne.highway1.com> (raw)
In-Reply-To: 3563E139.E7536C13@citicorp.com
Asgar Ali wrote:
>
> Sorry,
>
> the triple free(ptr) did not work on this DEC system.
It's not supposed to. According to the ANSI C standard (4.10.3.2), if
the space has been deallocated by a call to free or realloc, the
behavior is undefined. In Digital Unix, the allocator does return memory
back to the system if it is able to. Most C allocators do not.
--
Jerry Feldman <gaf@mediaone.net>
Boston Computer Solutions and Consulting
http://gaf.ne.mediaone.net/
prev parent reply other threads:[~1998-05-23 4:00 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-05-19 4:00 How do you release memory back to the kernel in C Asgar Ali
1998-05-19 4:00 ` firewind
1998-05-19 4:00 ` Lawrence Kirby
1998-05-21 4:00 ` John Hascall
1998-05-22 4:00 ` Asgar Ali
1998-05-19 4:00 ` Kaz Kylheku
1998-05-20 4:00 ` Chris Engebretson
1998-05-20 4:00 ` Serguei Patchkovskii
1998-05-20 4:00 ` Larry Weiss
1998-05-20 4:00 ` Kaz Kylheku
1998-05-20 4:00 ` Larry Weiss
[not found] ` <125D9A1BA03D8776.FEF9821DB00860BE.0E4 <895712304snz@genesis.demon.co.uk>
1998-05-21 4:00 ` Kaz Kylheku
1998-05-21 4:00 ` Larry Weiss
1998-05-21 4:00 ` Chris Engebretson
[not found] ` <2DECFB7C2125FF12.8D639AF581546583.E29C243161345CFE@library-proxy.airnews.net>
1998-05-22 4:00 ` CoolDoug
1998-05-22 4:00 ` Kaz Kylheku
1998-05-22 4:00 ` Larry Weiss
1998-05-25 4:00 ` Rolf Magnus
1998-05-25 4:00 ` Larry Weiss
1998-05-29 4:00 ` Patrick M.
1998-05-24 4:00 ` Al Bowers
1998-05-20 4:00 ` Larry Weiss
1998-05-21 4:00 ` Asgar Ali
1998-05-21 4:00 ` Kaz Kylheku
1998-05-23 4:00 ` Gerald A. Feldman [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox