From 701ee045bfa8684987b9607a5d348c057be0fae3 Mon Sep 17 00:00:00 2001 From: Emma Anholt Date: Wed, 26 Nov 2025 13:19:16 -0800 Subject: [PATCH] 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: (cherry picked from commit 89da258e71983d7f89f1f0b81552995a2c824ccc) --- .pick_status.json | 2 +- src/freedreno/vulkan/tu_pipeline.cc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.pick_status.json b/.pick_status.json index ca71a6a0bbb..d0fd62d0120 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -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 diff --git a/src/freedreno/vulkan/tu_pipeline.cc b/src/freedreno/vulkan/tu_pipeline.cc index 617157b0cd4..a25576d15f6 100644 --- a/src/freedreno/vulkan/tu_pipeline.cc +++ b/src/freedreno/vulkan/tu_pipeline.cc @@ -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);