OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef993ba
)
qemu-char: don't leak opts on error
author
Gerd Hoffmann
<kraxel@redhat.com>
Mon, 24 Jun 2013 06:39:51 +0000
(08:39 +0200)
committer
Michael Tokarev
<mjt@tls.msk.ru>
Fri, 28 Jun 2013 18:10:33 +0000
(22:10 +0400)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
qemu-char.c
patch
|
blob
|
history
diff --git
a/qemu-char.c
b/qemu-char.c
index
371f630
..
0cda56c
100644
(file)
--- 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) {