malloc and free mixing in VC++ and cygwin
Mumit Khan
khan@xraylith.wisc.EDU
Fri Apr 30 18:32:00 GMT 1999
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
More information about the Cygwin
mailing list