projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58a3714
)
qemu-socket: don't leak opts on error
author
Gerd Hoffmann
<kraxel@redhat.com>
Mon, 24 Jun 2013 06:39:56 +0000
(08:39 +0200)
committer
Michael Tokarev
<mjt@tls.msk.ru>
Fri, 28 Jun 2013 18:10:34 +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>
util/qemu-sockets.c
patch
|
blob
|
history
diff --git
a/util/qemu-sockets.c
b/util/qemu-sockets.c
index 126cbb603be443f9bc6f971ebcdead266180f292..095716ecdb6b4832ef5ab557d9466842a7c3cc30 100644
(file)
--- a/
util/qemu-sockets.c
+++ b/
util/qemu-sockets.c
@@
-963,7
+963,7
@@
int socket_dgram(SocketAddress *remote, SocketAddress *local, Error **errp)
default:
error_setg(errp, "socket type unsupported for datagram");
-
return
-1;
+
fd =
-1;
}
qemu_opts_del(opts);
return fd;