PATCH: Free cache in sysdeps/unix/sysv/linux/check_pf.c
H.J. Lu
hjl.tools@gmail.com
Sat May 12 17:07:00 GMT 2012
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.
More information about the Libc-alpha
mailing list