diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2013-06-24 08:39:51 +0200 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2013-06-28 22:10:33 +0400 |
commit | e668287d4413395be1a0f9ef292bb6d0c1006e29 (patch) | |
tree | aa5d7c5ebe2603362bee80c26da86814713974be /qemu-char.c | |
parent | ef993ba7bc631b57f9ea70a7f6fc8c0fcbdfa19d (diff) |
qemu-char: don't leak opts on error
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'qemu-char.c')
-rw-r--r-- | qemu-char.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-char.c b/qemu-char.c index 371f6308c5..0cda56cbca 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -3178,7 +3178,7 @@ CharDriverState *qemu_chr_new_from_opts(QemuOpts *opts, if (i == NULL) { error_setg(errp, "chardev: backend \"%s\" not found", qemu_opt_get(opts, "backend")); - return NULL; + goto err; } if (!cd->open) { |