This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: xfree() -- set ptr to nil (fwd)
- To: Michael Elizabeth Chastain <chastain at cygnus dot com>
- Subject: Re: xfree() -- set ptr to nil (fwd)
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Tue, 13 Feb 2001 14:53:53 -0500
- Cc: jmoore at cygnus dot com, kevinb at cygnus dot com, gdb-patches at sources dot redhat dot com
- References: <200102130001.QAA23491@bosch.cygnus.com>
Some platforms dump core from free(NULL), yet an ISO-C free(NULL)
doesn't. xfree() addresses this inconsistency by ensuring ISO-C
behavour.
enjoy,
Andrew
PS: Drugs^D^D^D^D^D Macros are bad M'kay ....