mirror of https://gitlab.freedesktop.org/mesa/mesa
tu: Add missing error path cleanup
Fixes dEQP-VK.api.device_init.create_instance_device_intentional_alloc_fail.basic with virtgpu (virtio_device_finish() needs to vk_free()). Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29088>
This commit is contained in:
parent
9f72e22230
commit
5c7f5362c0
|
@ -2554,6 +2554,7 @@ fail_queues:
|
|||
}
|
||||
|
||||
u_rwlock_destroy(&device->dma_bo_lock);
|
||||
tu_drm_device_finish(device);
|
||||
vk_device_finish(&device->vk);
|
||||
vk_free(&device->vk.alloc, device);
|
||||
return result;
|
||||
|
|
Loading…
Reference in New Issue