qemu-char: avoid leak in qemu_chr_open_pp_fd
commit27ef9cb0e77eda46618ea084adffa63ebde5be80
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 18 Jan 2016 10:25:45 +0000 (18 11:25 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 26 Jan 2016 14:58:11 +0000 (26 15:58 +0100)
tree883091ccb15f807bfd1f6290364cdd7c2c71fcf3
parent8485140fa07f839aef65f7f782a958804d745615
qemu-char: avoid leak in qemu_chr_open_pp_fd

drv leaks if qemu_chr_alloc returns an error.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
qemu-char.c