lavapipe: amend missing object finish on mem alloc failure

Missed since it was still vallium.

Cc: mesa-stable
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36252>
(cherry picked from commit 44e6f0abaa)
This commit is contained in:
Yiwei Zhang 2025-07-20 22:19:08 -07:00 committed by Eric Engestrom
parent 6f7c725241
commit c76107ab89
2 changed files with 2 additions and 1 deletions

View file

@ -1234,7 +1234,7 @@
"description": "lavapipe: amend missing object finish on mem alloc failure",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -2101,6 +2101,7 @@ VKAPI_ATTR VkResult VKAPI_CALL lvp_AllocateMemory(
return VK_SUCCESS;
fail:
vk_object_base_finish(&mem->base);
vk_free2(&device->vk.alloc, pAllocator, mem);
return vk_error(device, error);
}