tu: Fix leak of compute shader pipeline->base.executables_mem_ctx;

Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/14358
(cherry picked from commit 89da258e71)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38803>
This commit is contained in:
Emma Anholt 2025-11-26 13:19:16 -08:00 committed by Dylan Baker
parent 1430b06e9b
commit 5693ff3e2a
2 changed files with 2 additions and 1 deletions

View file

@ -864,7 +864,7 @@
"description": "tu: Fix leak of compute shader pipeline->base.executables_mem_ctx;",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -4815,6 +4815,7 @@ fail:
if (shader)
vk_pipeline_cache_object_unref(&dev->vk, &shader->base);
ralloc_free(pipeline->base.executables_mem_ctx);
ralloc_free(pipeline_mem_ctx);
vk_object_free(&dev->vk, pAllocator, pipeline);