v3dv: plug leak when destroying device
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 17 Dec 2019 07:48:52 +0000 (08:48 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Oct 2020 21:21:25 +0000 (21:21 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>

src/broadcom/vulkan/v3dv_device.c

index fee30b5..6a7ff27 100644 (file)
@@ -966,8 +966,8 @@ v3dv_DestroyDevice(VkDevice _device,
                    const VkAllocationCallbacks *pAllocator)
 {
    V3DV_FROM_HANDLE(v3dv_device, device, _device);
-
    queue_finish(&device->queue);
+   vk_free2(&default_alloc, pAllocator, device);
 }
 
 void