This is the mail archive of the cygwin@sourceware.cygnus.com
mailing list for the Cygwin project. See the Cygwin
home page for more information.
Re: malloc and free mixing in VC++ and cygwin
- To: Chris Faylor <cgf@cygnus.com>
- Subject: Re: malloc and free mixing in VC++ and cygwin
- From: Mumit Khan <khan@xraylith.wisc.EDU>
- Date: Thu, 29 Apr 1999 09:59:28 -0500
- cc: cygwin <cygwin@sourceware.cygnus.com>
Chris Faylor <cgf@cygnus.com> writes:
>
> You could use these routines to free the memory but you'd end
> up with a severely corrupted heap as far as cygwin is concerned.
> Cygwin's free() command does more than (potentially) return memory
> to the system. In fact, it usually doesn't even return memory to
> the system. It also keeps a list of all allocated memory for reuse
> by other malloc calls. This is a pretty standard way of doing things.
Thanks for the clarification. I missed the ramifications.
Regards,
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com