This is the mail archive of the 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 <> 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.


Want to unsubscribe from this list?
Send a message to