From ad17b864cbb1c9ea3e07f5514bd113f7c28b31cf Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Fri, 20 Mar 2026 16:06:48 +0000 Subject: [PATCH] radv: fix memory leak in radv_rt_nir_to_asm Signed-off-by: Rhys Perry Backport-to: 26.0 Reviewed-by: Samuel Pitoiset (cherry picked from commit 574f5776577f627832152372114e1e29c2169882) Part-of: --- .pick_status.json | 2 +- src/amd/vulkan/radv_pipeline_rt.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.pick_status.json b/.pick_status.json index d47794938e1..13b23983584 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -884,7 +884,7 @@ "description": "radv: fix memory leak in radv_rt_nir_to_asm", "nominated": true, "nomination_type": 4, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": null, "notes": null diff --git a/src/amd/vulkan/radv_pipeline_rt.c b/src/amd/vulkan/radv_pipeline_rt.c index e3e5774539f..ca9e6da1252 100644 --- a/src/amd/vulkan/radv_pipeline_rt.c +++ b/src/amd/vulkan/radv_pipeline_rt.c @@ -541,6 +541,7 @@ radv_rt_nir_to_asm(struct radv_device *device, struct vk_pipeline_cache *cache, if (dump_shader) simple_mtx_unlock(&instance->shader_dump_mtx); + ralloc_free(mem_ctx); free(binary); *out_shader = shader;