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.
Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: malloc and free mixing in VC++ and cygwin


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