xfs
[Top] [All Lists]

Re: libattr - severe memory leaks from attr_copy_file()

To: xfs@xxxxxxxxxxx
Subject: Re: libattr - severe memory leaks from attr_copy_file()
From: Arkadiusz Miskiewicz <arekm@xxxxxxxx>
Date: Tue, 17 Feb 2009 13:04:18 +0100
In-reply-to: <499AA47A.2050106@xxxxxxxxxx>
References: <499AA47A.2050106@xxxxxxxxxx>
User-agent: PLD Linux KMail/1.9.10
On Tuesday 17 of February 2009, Zdenek Prikryl wrote:
> -       free(text);
> +       if (text)
> +               free(text);

free(NULL) is fine (on Linux at least)

-- 
Arkadiusz Miśkiewicz        PLD/Linux Team
arekm / maven.pl            http://ftp.pld-linux.org/
<Prev in Thread] Current Thread [Next in Thread>