Re: Code cleanup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Nick Lamb <njl98r@xxxxxxxxxxxxxxx> writes:

> > If p is a null pointer then "free (p)" may (and should!) crash.  You
> > are incorrect here.
> 
> <sigh> You are completely wrong, see K&R's treatment of ANSI C

Sorry, my bad.  I just checked the ISO standard and indeed, free(NULL)
is safe.

I guess that makes me an old fogey.

  Federico


[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux