Return segment to OS
Doug Gwyn
gwyn at smoke.brl.mil
Wed Apr 24 06:05:31 AEST 1991
In article <1991Apr22.100300.1367 at mdcbbs.com> gd010gd02 at mdcbbs.com writes:
- It appears that the memory requested from the operating
- system by malloc() is never released even after all the
- entries in the allocated segment have been free()'ed
- Does anyone know of a "safe" way of returning a segment
- to the operating system?
You didn't say WHICH operating system, but the generic answer is:
"No, if the malloc/free implementation doesn't take care of this it
would be folly for your application program to try to."
More information about the Comp.lang.c
mailing list