commit | 7a5b6af13a45ae7109900dee03a436819302126c | [log] [tgz] |
---|---|---|
author | Gerd Hoffmann <kraxel@redhat.com> | Mon Jun 24 08:39:56 2013 +0200 |
committer | Michael Tokarev <mjt@tls.msk.ru> | Fri Jun 28 22:10:34 2013 +0400 |
tree | c3b94b15a5fb193db892c166b41885800ec2793a | |
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>
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 @@ default: error_setg(errp, "socket type unsupported for datagram"); - return -1; + fd = -1; } qemu_opts_del(opts); return fd;