[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 13/13] qemu-socket: don't leak opts on error
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH v2 13/13] qemu-socket: don't leak opts on error |
Date: |
Mon, 24 Jun 2013 08:39:56 +0200 |
Signed-off-by: Gerd Hoffmann <address@hidden>
---
util/qemu-sockets.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/util/qemu-sockets.c b/util/qemu-sockets.c
index 126cbb6..095716e 100644
--- 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;
--
1.7.9.7
- [Qemu-devel] [PATCH v2 00/13] A bunch of little socket + chardev fixes, Gerd Hoffmann, 2013/06/24
- [Qemu-devel] [PATCH v2 01/13] qemu-socket: zero-initialize SocketAddress, Gerd Hoffmann, 2013/06/24
- [Qemu-devel] [PATCH v2 03/13] qemu-socket: catch monitor_get_fd failures, Gerd Hoffmann, 2013/06/24
- [Qemu-devel] [PATCH v2 04/13] qemu-char: check optional fields using has_*, Gerd Hoffmann, 2013/06/24
- [Qemu-devel] [PATCH v2 06/13] qemu-char: print notification to stderr, Gerd Hoffmann, 2013/06/24
- [Qemu-devel] [PATCH v2 05/13] qemu-char: use more specific error_setg_* variants, Gerd Hoffmann, 2013/06/24
- [Qemu-devel] [PATCH v2 09/13] qemu-char: use ChardevBackendKind in in CharDriver, Gerd Hoffmann, 2013/06/24
- [Qemu-devel] [PATCH v2 07/13] qemu-char: fix documentation for telnet+wait socket flags, Gerd Hoffmann, 2013/06/24
- [Qemu-devel] [PATCH v2 08/13] qemu-char: don't leak opts on error, Gerd Hoffmann, 2013/06/24
- [Qemu-devel] [PATCH v2 13/13] qemu-socket: don't leak opts on error,
Gerd Hoffmann <=
- [Qemu-devel] [PATCH v2 12/13] qemu-char: report udb backend errors, Gerd Hoffmann, 2013/06/24
- [Qemu-devel] [PATCH v2 11/13] qemu-char: add -chardev mux support, Gerd Hoffmann, 2013/06/24
- [Qemu-devel] [PATCH v2 10/13] qemu-char: minor mux chardev fixes, Gerd Hoffmann, 2013/06/24
- [Qemu-devel] [PATCH v2 02/13] qemu-socket: drop pointless allocation, Gerd Hoffmann, 2013/06/24
- Re: [Qemu-devel] [Qemu-trivial] [PATCH v2 00/13] A bunch of little socket + chardev fixes, Michael Tokarev, 2013/06/24