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

Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/14358
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38684>
(cherry picked from commit 89da258e71)
This commit is contained in:
Emma Anholt 2025-11-26 13:19:16 -08:00 committed by Eric Engestrom
parent 300cb6962a
commit 701ee045bf
2 changed files with 2 additions and 1 deletions

View file

@ -1554,7 +1554,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

@ -4814,6 +4814,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);