This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]