-
Alex Chen authored
When the qio_channel_socket_connect_sync() fails we should goto 'out_socket' label to free the 'sioc' instead of goto 'out' label. In addition, there's a lot of redundant code in the successful branch and the error branch, optimize it. Reported-by:
Euler Robot <euler.robot@huawei.com>
Signed-off-by:
Alex Chen <alex.chen@huawei.com>
Signed-off-by:
Eric Blake <eblake@redhat.com>
Reviewed-by:
Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20201208134944.27962-1-alex.chen@huawei.com>Alex Chen authoredWhen the qio_channel_socket_connect_sync() fails we should goto 'out_socket' label to free the 'sioc' instead of goto 'out' label. In addition, there's a lot of redundant code in the successful branch and the error branch, optimize it. Reported-by:
Euler Robot <euler.robot@huawei.com>
Signed-off-by:
Alex Chen <alex.chen@huawei.com>
Signed-off-by:
Eric Blake <eblake@redhat.com>
Reviewed-by:
Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20201208134944.27962-1-alex.chen@huawei.com>
Loading