This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Cleanup: don't call free(NULL) unnecessarily


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]