]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Fix coverity-reported leak in virSecurityManagerGenLabel
authorJán Tomko <jtomko@redhat.com>
Wed, 2 Apr 2014 12:37:35 +0000 (14:37 +0200)
committerJán Tomko <jtomko@redhat.com>
Wed, 2 Apr 2014 13:23:01 +0000 (15:23 +0200)
commit66050f0f892c2a62e56136d25886f8416d7881ea
tree7a1286f3ecc5de566c49f4a441f418cc95368620
parent2279d5605c1ba2fedc6a07b0b7a7f69742523caf
Fix coverity-reported leak in virSecurityManagerGenLabel

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.
src/security/security_manager.c