diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2017-03-17 13:28:02 +0400 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2017-03-20 09:07:34 +0100 |
commit | 7bc4f0846f5e15dad5a54490290241243b5a4416 (patch) | |
tree | eee751e5322ef0d4ae97ba736c6c4e70613432a2 /ui/vnc.c | |
parent | f019722cbbb45aea153294fc8921fcc96a4d3fa2 (diff) |
vnc: fix a qio-channel leak
Spotted by ASAN.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20170317092802.17973-1-marcandre.lureau@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/vnc.c')
-rw-r--r-- | ui/vnc.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -3677,6 +3677,7 @@ static int vnc_display_listen_addr(VncDisplay *vd, qio_channel_set_name(QIO_CHANNEL(sioc), name); if (qio_channel_socket_listen_sync( sioc, rawaddrs[i], listenerr == NULL ? &listenerr : NULL) < 0) { + object_unref(OBJECT(sioc)); continue; } listening = true; |