Re: [libvirt] [PATCH 2/4] virchrdev: Don't leak mutex if virChrdevAlloc() fails

2020-01-16 Thread Erik Skultety
On Wed, Jan 08, 2020 at 09:18:30AM +0100, Michal Privoznik wrote: > This is only a theoretical leak, but in virChrdevAlloc() we > initialize a mutex and if creating a hash table fails, > then virChrdevFree() is called which because of incorrect check > doesn't deinit the mutex. > > Signed-off-by:

[libvirt] [PATCH 2/4] virchrdev: Don't leak mutex if virChrdevAlloc() fails

2020-01-08 Thread Michal Privoznik
This is only a theoretical leak, but in virChrdevAlloc() we initialize a mutex and if creating a hash table fails, then virChrdevFree() is called which because of incorrect check doesn't deinit the mutex. Signed-off-by: Michal Privoznik --- src/conf/virchrdev.c | 2 +- 1 file changed, 1