qemu-char: do not leak QemuMutex when freeing a character device
commitfefd749ce29837d399a38d6052ca9968fa7352e7
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 15 Jan 2016 15:16:25 +0000 (15 16:16 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 15 Jan 2016 17:58:02 +0000 (15 18:58 +0100)
tree2c4470c8995aac4b747299d751255639138c0a48
parentd0d7708ba29cbcc343364a46bff981e0ff88366f
qemu-char: do not leak QemuMutex when freeing a character device

The leak is only apparent on Win32.  On POSIX platforms destroying a
mutex is not necessary.

Reported-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
qemu-char.c