This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: PATCH/RFA free(NULL) bomb in printcmd.c
- To: dan at cgsoftware dot com
- Subject: Re: PATCH/RFA free(NULL) bomb in printcmd.c
- From: Eli Zaretskii <eliz at delorie dot com>
- Date: Tue, 11 Apr 2000 07:45:28 -0400 (EDT)
- CC: ac131313 at cygnus dot com, phdm at macqel dot be, gdb-patches at sourceware dot cygnus dot com
- References: <Pine.LNX.4.10.10004102016240.6061-100000@propylaea.anduin.com>
- Reply-to: Eli Zaretskii <eliz at is dot elta dot co dot il>
> Then again, i dmallocified GDB about a week and a half ago (which was
> quite a chore, involving dmallocifying libiberty, etc. I got literally
> every call), and i stopped fixing null pointer frees after about 35th one.
> So he's really going to be fighting an uphill battle.
Do we really need to fight that battle, though?
IIRC, GDB now assumes ISO C, right? And the C89 standard clearly says
that "free(NULL);" should be a no-op.