This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: PATCH: Free cache in sysdeps/unix/sysv/linux/check_pf.c
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Marek Polacek <polacek at redhat dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Sat, 12 May 2012 10:07:02 -0700
- Subject: Re: PATCH: Free cache in sysdeps/unix/sysv/linux/check_pf.c
- References: <20120512162827.GA10502@intel.com><20120512170336.GN19535@redhat.com>
On Sat, May 12, 2012 at 10:03 AM, Marek Polacek <polacek@redhat.com> wrote:
> On Sat, May 12, 2012 at 09:28:27AM -0700, H.J. Lu wrote:
>> +/* Make sure cache is freed before exiting. ?*/
>> +libc_freeres_fn (freecache)
>> +{
>> + ?if (cache)
>> + ? ?free (cache);
>> +}
>
> Is that if really necessary?
>
It works correctly without "if".
--
H.J.