anv: Clean up anv_descriptor_pool::base on the error path

Fixes: 682c81bdfb "vulkan,anv: Add a base object struct type"
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10123>
This commit is contained in:
Jason Ekstrand
2021-04-08 16:27:02 -05:00
committed by Marge Bot
parent 13036a62e4
commit 46749afe45

View File

@@ -880,6 +880,7 @@ VkResult anv_CreateDescriptorPool(
0 /* explicit_address */,
&pool->bo);
if (result != VK_SUCCESS) {
vk_object_base_finish(&pool->base);
vk_free2(&device->vk.alloc, pAllocator, pool);
return result;
}