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

Erik Skultety eskultet at redhat.com
Thu Jan 16 13:03:37 UTC 2020

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: Michal Privoznik <mprivozn at redhat.com>
> ---
Reviewed-by: Erik Skultety <eskultet at redhat.com>

More information about the libvir-list mailing list