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

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



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


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