[libvirt] [PATCH] security driver: eliminate memory leaks in failure paths

Eric Blake eblake at redhat.com
Tue Apr 30 15:07:32 UTC 2013


On 04/30/2013 09:02 AM, Laine Stump wrote:
> If virPCIDeviceGetVFIOGroupDev() failed,
> virSecurity*(Set|Restore)HostdevLabel() would fail to free a
> virPCIDevice that had been allocated.
> 
> These leaks were all introduced (by me) very recently, in commit
> f0bd70a.
> ---
>  src/security/security_apparmor.c |  4 +++-
>  src/security/security_dac.c      | 10 ++++++----
>  src/security/security_selinux.c  | 10 ++++++----
>  3 files changed, 15 insertions(+), 9 deletions(-)

ACK.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130430/f1407a33/attachment-0001.sig>


More information about the libvir-list mailing list