[Mesa-dev] [PATCH 1/3] mesa: remove null pointer checks before free() calls

Brian Paul brianp at vmware.com
Tue Sep 4 06:51:26 PDT 2012


On 09/03/2012 09:47 PM, Matt Turner wrote:
> On Mon, Sep 3, 2012 at 12:15 PM, Matt Turner<mattst88 at gmail.com>  wrote:
>> On Mon, Sep 3, 2012 at 7:13 AM, Brian Paul<brian.e.paul at gmail.com>  wrote:
>>> From: Brian Paul<brianp at vmware.com>
>>>
>>> Since free(NULL) is fine.
>>
>> I think if we want to do this, then we should do it all the way with a
>> Coccinelle semantic patch.
>>
>> I'll send a patch.
>
> Oh, I see you committed this anyway..

OK, I thought you meant you'd use a semantic patch to fix _additional_ 
instances of this.  I found the ones I fixed with grep -C1.  Feel free 
to find/fix other instances.

-Brian



More information about the mesa-dev mailing list