W3C home > Mailing lists > Public > www-lib@w3.org > April to June 1996

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

From: Henrik Frystyk Nielsen <frystyk@w3.org>
Date: Mon, 24 Jun 1996 14:12:08 -0400
Message-Id: <199606241812.OAA04275@www20.w3.org>
To: sacha@clip.dia.fi.upm.es (Sacha)
Cc: www-lib@w3.org
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:26 GMT