On Tuesday 08 September 2015 14:30:15 Andreas Grünbacher wrote:
Jaska and Kamil,
2015-09-08 14:26 GMT+02:00 Kamil Dudka <address@hidden>:
> On Tuesday 08 September 2015 14:37:56 Jaska Uimonen wrote:
>> Hi,
>>
>> I was assigned to fix some static analysis issues
>> in my company. There we're couple identified in acl.
>>
>> These are all in getfacl.c and are quite minor things,
>> but here they are anyway... they are mainly concerning
>> not freeing things returned from acl_get_identifier.
Thanks.
> Looks good to me. I would personally prefer explicit type conversion when
> freeing id_p instead of changing its declaration
Or making the variable non-const in the first place.
That was already in the original patch by Jaska ;-)
Also I wouldprefer not to expand the life span of those temporary variables
too much.
Sounds like a good idea.
How about the attached fix?
+1
Kamil
Andreas