Re: Stock Circle Bug

From: Daniel Koepke (
Date: 01/19/97

On Sun, 19 Jan 1997, Edward Almasy wrote:

> The NULL pointer ('if') checks only prevent the deallocation if the
> pointer is set to NULL (zero in most architectures).  The call to free()
> just deallocates the memory -- it doesn't change the pointer at all, so
> the 'if' check doesn't prevent anything.

Ahhh, you're right.  I was using a macro for free(), I didn't realize
the capital (Free instead of free), and I didn't have that problem,
which is why my assumption was off.

Daniel Koepke
Forgive me father, for I am sin.

| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   |

This archive was generated by hypermail 2b30 : 12/18/00 PST