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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]