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 | |
parent | 58a3714c529b1b97ee078ea25b58f731aabcbfff (diff) | |
download | qemu-7a5b6af13a45ae7109900dee03a436819302126c.zip qemu-7a5b6af13a45ae7109900dee03a436819302126c.tar.gz qemu-7a5b6af13a45ae7109900dee03a436819302126c.tar.bz2 |
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')
-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 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; |