Daniil Tatianin b259772afc hw/scsi/vhost-scsi: don't leak vqs on error
vhost_dev_init calls vhost_dev_cleanup in case of an error during
initialization, which zeroes out the entire vsc->dev as well as the
vsc->dev.vqs pointer. This prevents us from properly freeing it in free_vqs.
Keep a local copy of the pointer so we can free it later.

Signed-off-by: Daniil Tatianin <d-tatianin@yandex-team.ru>
Message-Id: <20211129132358.1110372-1-d-tatianin@yandex-team.ru>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2022-01-07 19:30:13 -05:00
..
2021-10-27 14:45:22 +02:00
2021-10-12 08:20:08 +02:00
2022-01-05 09:06:36 +01:00
2021-10-12 08:20:08 +02:00
2021-11-09 13:16:56 +01:00
2022-01-05 09:06:36 +01:00
2022-01-05 09:06:36 +01:00
2021-11-17 11:25:55 -07:00