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>
This commit is contained in:
parent
f019722cbb
commit
7bc4f0846f
1
ui/vnc.c
1
ui/vnc.c
|
@ -3677,6 +3677,7 @@ static int vnc_display_listen_addr(VncDisplay *vd,
|
||||||
qio_channel_set_name(QIO_CHANNEL(sioc), name);
|
qio_channel_set_name(QIO_CHANNEL(sioc), name);
|
||||||
if (qio_channel_socket_listen_sync(
|
if (qio_channel_socket_listen_sync(
|
||||||
sioc, rawaddrs[i], listenerr == NULL ? &listenerr : NULL) < 0) {
|
sioc, rawaddrs[i], listenerr == NULL ? &listenerr : NULL) < 0) {
|
||||||
|
object_unref(OBJECT(sioc));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
listening = true;
|
listening = true;
|
||||||
|
|
Loading…
Reference in a new issue