Re: RFA: fix minor memory leak in symfile.c

Mark Kettenis
2008-09-13T23:47:36Z

> Date: Sat, 13 Sep 2008 16:03:27 -0700
> From: Joel Brobecker <brobecker@adacore.com>
>
> > My understanding is that on all systems in active use, free(NULL)
> > works fine. Jim Meyering recently removed if (x) free (x) from a
> > bunch of GNU programs...
>
> We might end up doing it in GDB as well, not sure what the others think.

I don't see why we should change our policy to use xfree(), but the
main reason why we didn't rely on free(NULL) doing nothing was SunOS
4. There's probably no point in supporting GDB on that platform
anymore, so I think requiring a C89 libc would be reasonable.

Mark