Re: [Request] free's should set ptr to null?

Sacha writes:
> 
> Hi,
> 
> I know HT_FREE sets the passed ptr to NULL, could this be done
> for all the other free functions (like HTGuess_free etc) too?
> I guess you'd still get the same old segmentation faults (or
> whatever the Windows equivalent is - MSsegfault?) but it would
> tighten things up a bit, and would provide a way of testing
> whether your object was really freed (there may be circumstances
> under which a free should not free).

That's a good idea - I have tried to do it some places but it is not 
consistent at all. Any help would be appreciated!

> Free at last,

you bet!

Henrik

Received on Monday, 24 June 1996 14:12:10 UTC