projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0d7708
)
qemu-char: do not leak QemuMutex when freeing a character device
author
Paolo Bonzini
<pbonzini@redhat.com>
Fri, 15 Jan 2016 15:16:25 +0000
(16:16 +0100)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Fri, 15 Jan 2016 17:58:02 +0000
(18:58 +0100)
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
patch
|
blob
|
history
diff --git
a/qemu-char.c
b/qemu-char.c
index 11caa5648de99c9e0ee158f280fbc02ab05915d3..e133f4fc35d7ebe5ecb8848e1f2f6046646c4088 100644
(file)
--- a/
qemu-char.c
+++ b/
qemu-char.c
@@
-3972,6
+3972,7
@@
static void qemu_chr_free_common(CharDriverState *chr)
if (chr->logfd != -1) {
close(chr->logfd);
}
+ qemu_mutex_destroy(&chr->chr_write_lock);
g_free(chr);
}