Re: [PATCH] gdb: remove unnecessary NULL checks before xfree

Tom Tromey
2020-05-21T15:23:53Z

>>>>> "Simon" == Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> writes:

Simon> This patch removes the unnecessary NULL checks before calls to xfree.
Simon> They are unnecessary because xfree already does a NULL check. Since
Simon> free is supposed to handle NULL values correctly, the NULL check in
Simon> xfree itself is also questionable, but I've left it there for now.

Looks good. I think it's fine to remove the one from xfree as well.

Note this same thing applies to delete. I don't know whether we have
instances of that.

Tom