diff --git a/qemu-char.c b/qemu-char.c index 11caa5648d..e133f4fc35 100644 --- 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); }