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

2013-04-30 Thread Eric Blake
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/securit

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

2013-04-30 Thread Laine Stump
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 |