On Mon, 15 Apr 2002, David Ford wrote:

> Just a side note, I use a wrapper for free() in my code, it checks to
> ensure the input isn't 0x0, frees the passed pointer, then sets the
> pointer to 0x0.  If the passed pointer is already 0x0, I log where it
> was called from so my logs show I'm doing a double free.  The added

In this case, we have multiple references to the same object, so setting
one pointer to NULL wouldn't stop us from trying to free the other one.
:)

--Cliff

--------------------------------------------------------------
   Cliff Woolley
   [EMAIL PROTECTED]
   Charlottesville, VA


Reply via email to