malloc/free & new/delete balance

Joern Rennecke amylaar@cygnus.co.uk
Mon Jul 6 14:48:00 GMT 1998


> *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.



More information about the Gcc mailing list