OSDN Git Service

vnc: Fix a memleak in vnc_display_connect()
authorAlex Chen <alex.chen@huawei.com>
Thu, 26 Nov 2020 06:57:02 +0000 (06:57 +0000)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 15 Jan 2021 10:22:43 +0000 (11:22 +0100)
commit5f8679fe46d78acfa5fc43a3fd6b3fe95525d9bd
tree0192a1011a204260e6cddaafcb47ba96834ac176
parent7b5fa0b583c8d54f4bc3be796c4086de39ea09d3
vnc: Fix a memleak in vnc_display_connect()

Free the 'sioc' when the qio_channel_socket_connect_sync() fails.

Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: Alex Chen <alex.chen@huawei.com>
Reviewed-by: Li Qiang <liq3ea@gmail.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20201126065702.35095-1-alex.chen@huawei.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/vnc.c