diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2013-06-24 08:39:56 +0200 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2013-06-28 22:10:34 +0400 |
commit | 7a5b6af13a45ae7109900dee03a436819302126c (patch) | |
tree | c3b94b15a5fb193db892c166b41885800ec2793a /util/qemu-sockets.c | |
parent | 58a3714c529b1b97ee078ea25b58f731aabcbfff (diff) |
qemu-socket: 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 'util/qemu-sockets.c')
-rw-r--r-- | util/qemu-sockets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/qemu-sockets.c b/util/qemu-sockets.c index 126cbb603b..095716ecdb 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; |