]> git.proxmox.com Git - qemu.git/commit - qemu-char.c
chardev: fix QemuOpts lifecycle
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 15 Oct 2012 07:30:59 +0000 (09:30 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 16 Jan 2013 05:58:53 +0000 (06:58 +0100)
commit2274ae9d1a841c9d214b7c877d28e2f037a9b26e
treedc235ea8f125b24a4910fecee8bd00d1ee2def71
parentbd2d80b2b75b36955d536564ceb593f5bdae2f12
chardev: fix QemuOpts lifecycle

qemu_chr_new_from_opts handles QemuOpts release now, so callers don't
have to worry.  It will either be saved in CharDriverState, then
released in qemu_chr_delete, or in the error case released instantly.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
include/char/char.h
qemu-char.c