diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2012-10-15 09:30:59 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2013-01-16 06:58:53 +0100 |
commit | 2274ae9d1a841c9d214b7c877d28e2f037a9b26e (patch) | |
tree | dc235ea8f125b24a4910fecee8bd00d1ee2def71 /include | |
parent | bd2d80b2b75b36955d536564ceb593f5bdae2f12 (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/char/char.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/char/char.h b/include/char/char.h index 1952a10063..c91ce3c98a 100644 --- a/include/char/char.h +++ b/include/char/char.h @@ -75,6 +75,7 @@ struct CharDriverState { char *filename; int opened; int avail_connections; + QemuOpts *opts; QTAILQ_ENTRY(CharDriverState) next; }; |