Newsgroups: comp.lang.c
Path: utzoo!henry
From: henry@zoo.toronto.edu (Henry Spencer)
Subject: Re: Return segment to OS
Message-ID: <1991Apr23.003126.5106@zoo.toronto.edu>
Date: Tue, 23 Apr 1991 00:31:26 GMT
References: <1991Apr22.100300.1367@mdcbbs.com>
Organization: U of Toronto Zoology

In article <1991Apr22.100300.1367@mdcbbs.com> gd010gd02@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?

Which operating system?  There is certainly no *portable* way of doing this,
so you would be better off asking this question in an operating-system group
like comp.os.msdos.programmer.
-- 
And the bean-counter replied,           | Henry Spencer @ U of Toronto Zoology
"beans are more important".             |  henry@zoo.toronto.edu  utzoo!henry
