[rfc] asprintf() -> xasprintf()
Richard Earnshaw
rearnsha@arm.com
Tue Nov 14 08:07:00 GMT 2000
fche@redhat.com said:
> Fernando Nasser <fnasser@cygnus.com> writes:
> : Good catch. No more memory would cause an attempt to free NULL. :
> (Have you ever considered a FREE macro that tests for NULL pointers?
> [...]
> free(NULL) is defined in even old standards to be a no-op.
Then somebody had better tell sunos that: I don't think it was listening
:-)
R.
free(NULL) is not defined on older machines -- it came in with ANSI.
More information about the Gdb-patches
mailing list