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: Siddhesh Poyarekar <siddhesh dot poyarekar at gmail dot com>
- To: Paul Pluzhnikov <ppluzhnikov at google dot com>
- Cc: libc-alpha at sourceware dot org, ahh at google dot com
- Date: Wed, 6 Mar 2013 08:48:40 +0530
- Subject: Re: [patch] Cleanup: don't call free(NULL) unnecessarily
- References: <ye6qehft7j12.fsf@elbrus2.mtv.corp.google.com>
On 6 March 2013 00:48, Paul Pluzhnikov <ppluzhnikov@google.com> wrote:
> + if (__builtin_expect (workstart != NULL, 0))
> + free (workstart);
Sorry, I'm a little late on this, but this should have been
__glibc_unlikely() instead of __builtin_expect.
--
http://siddhesh.in