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: Free cache in sysdeps/unix/sysv/linux/check_pf.c


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.


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