From: Marc-André Lureau <marcandre.lur...@redhat.com> chr_disconnect callback is used to cleanup server socket peer. This removes some leaks when the chardev is freed.
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com> --- qemu-char.c | 1 + 1 file changed, 1 insertion(+) diff --git a/qemu-char.c b/qemu-char.c index e4b8448..6ed6dd6 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -4031,6 +4031,7 @@ static void qemu_chr_free_common(CharDriverState *chr) void qemu_chr_free(CharDriverState *chr) { + qemu_chr_disconnect(chr); if (chr->chr_close) { chr->chr_close(chr); } -- 2.9.0