This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: malloc/free & new/delete balance
- To: ncm at cygnus dot com (Nathan Myers)
- Subject: Re: malloc/free & new/delete balance
- From: Joern Rennecke <amylaar at cygnus dot co dot uk>
- Date: Mon, 6 Jul 1998 22:24:40 +0100 (BST)
- Cc: egcs at cygnus dot com
> *You* try to write a requirement that the storage is re-used without
> actually specifying an algorithm. The C committee gave up, and the
> C++ committee doesn't claim to be (much :) smarter.
How about listing some minimum requirement, like:
if an object is freed, and the next allocation is for an object of the
same size, that allocation will succeed.