From 68273972d89697a41bbff7ba481520f4c498c4eb Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 3 Jun 2026 11:41:20 +0200 Subject: [PATCH] radv/rt: fix a memory leak with the RT prolog NIR radv_meta_nir_init_shader() allocates it and it must be freed. Cc: mesa-stable Signed-off-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_pipeline_rt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/amd/vulkan/radv_pipeline_rt.c b/src/amd/vulkan/radv_pipeline_rt.c index 1a99632a06e..ff3aab8dcc4 100644 --- a/src/amd/vulkan/radv_pipeline_rt.c +++ b/src/amd/vulkan/radv_pipeline_rt.c @@ -1062,6 +1062,7 @@ compile_rt_prolog(struct radv_device *device, struct radv_ray_tracing_pipeline * NIR_PASS(_, prolog_stage.nir, nir_opt_remove_phis); pipeline->prolog = radv_compile_rt_prolog(device, &prolog_stage, &debug); + ralloc_free(prolog_stage.nir); bool has_traversal = !!pipeline->base.base.shaders[MESA_SHADER_INTERSECTION];