diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2018-02-15 10:26:02 +0000 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2018-02-16 12:22:35 +0100 |
commit | f42fdb24b740f2b99526128dd6e78197e033be11 (patch) | |
tree | f0f46a2508de25d35414c369890cadf655ed991d /ui/vnc.c | |
parent | fb68096da3d35e64c88cd610c1fa42766c58e92a (diff) |
vnc: remove bogus object_unref on client socket
vnc_listen_io() does not own the reference on the 'cioc' parameter is it
passed, so should not be unref'ing it.
Fixes: 13e1d0e71e78a925848258391a6e616b6b5ae219
Reported-by: Bandan Das <bsd@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 20180215102602.10864-1-berrange@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, 0 insertions, 1 deletions
@@ -3152,7 +3152,6 @@ static void vnc_listen_io(QIONetListener *listener, isWebsock ? "vnc-ws-server" : "vnc-server"); qio_channel_set_delay(QIO_CHANNEL(cioc), false); vnc_connect(vd, cioc, false, isWebsock); - object_unref(OBJECT(cioc)); } static const DisplayChangeListenerOps dcl_ops = { |