[libvirt] [PATCHv2] Fix coverity-reported leak in virSecurityManagerGenLabel

2014-04-02 Thread Ján Tomko
Coverity complains about a possible leak of seclabel if !sec_managers[i]-drv-domainGenSecurityLabel is true and the seclabel might be overwritten by the next iteration of the loop. This leak should never happen, because every security driver has domainGenSecurityLabel defined. --- v1: 'Remove

Re: [libvirt] [PATCHv2] Fix coverity-reported leak in virSecurityManagerGenLabel

2014-04-02 Thread Eric Blake
On 04/02/2014 07:26 AM, Ján Tomko wrote: Coverity complains about a possible leak of seclabel if !sec_managers[i]-drv-domainGenSecurityLabel is true and the seclabel might be overwritten by the next iteration of the loop. This leak should never happen, because every security driver has

Re: [libvirt] [PATCHv2] Fix coverity-reported leak in virSecurityManagerGenLabel

2014-04-02 Thread Ján Tomko
On 04/02/2014 04:26 PM, Eric Blake wrote: On 04/02/2014 07:26 AM, Ján Tomko wrote: Coverity complains about a possible leak of seclabel if !sec_managers[i]-drv-domainGenSecurityLabel is true and the seclabel might be overwritten by the next iteration of the loop. This leak should never