Re: [ Code ] My previous post...

From: David Klasinc (bigwhale@CAPYBARA.SK-PTTSC.LJ.EDUS.SI)
Date: 07/31/97

On Wed, 30 Jul 1997, Sammy wrote:

> guarantee.  If you want to use null checks for protection, you could
> replace free() with FREE():
> #define FREE(ptr)       (free((ptr)); (ptr) = NULL:)
> Or you could do it the hard way and change free() on all the systems
> you're working with.

 Hm, Ok... that FREE didn't quite work, I got some parse error, but then I
put something similar into free_char()

Right after free(ch); I added ch = NULL;

And hmm... ch is still not freed... *grumble*

What am I missing?


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

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