This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [patch] Cleanup: don't call free(NULL) unnecessarily
- From: Paul Pluzhnikov <ppluzhnikov at google dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: libc-alpha at sourceware dot org, ahh at google dot com
- Date: Tue, 5 Mar 2013 14:33:38 -0800
- Subject: Re: [patch] Cleanup: don't call free(NULL) unnecessarily
- References: <ye6qehft7j12.fsf@elbrus2.mtv.corp.google.com> <m2fw09lc56.fsf@igel.home>
On Tue, Mar 5, 2013 at 2:23 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
> free (0) is trivial to implement, independent of context.
No argument there.
But if we can consistently not call free in the first place, that's even
better.
--
Paul Pluzhnikov