From: Brian Ho Date: Thu, 30 Jan 2020 16:02:29 +0000 (-0500) Subject: turnip: Free event->bo on vkDestroyEvent X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1c3319cf81779ba6a17223d22ddd3afc68acab1e;p=mesa.git turnip: Free event->bo on vkDestroyEvent Fixes a leak from freeing event but not event->bo. Reviewed-by: Jonathan Marek Tested-by: Marge Bot Part-of: --- diff --git a/src/freedreno/vulkan/tu_device.c b/src/freedreno/vulkan/tu_device.c index 8dfb288b028..b91df7c4411 100644 --- a/src/freedreno/vulkan/tu_device.c +++ b/src/freedreno/vulkan/tu_device.c @@ -1761,6 +1761,8 @@ tu_DestroyEvent(VkDevice _device, if (!event) return; + + tu_bo_finish(device, &event->bo); vk_free2(&device->alloc, pAllocator, event); }