radv/rt: fix memory leak in lower_rt_instructions_monolithic()

Found with ASAN.

Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37844>
This commit is contained in:
Samuel Pitoiset
2025-10-13 14:06:14 +02:00
committed by Marge Bot
parent ddef2c1559
commit 876e6a3bfe

View File

@@ -1914,6 +1914,8 @@ lower_rt_instructions_monolithic(nir_shader *shader, struct radv_device *device,
hit_attribs[i] = nir_local_variable_create(impl, glsl_uint_type(), "ahit_attrib");
lower_hit_attribs(shader, hit_attribs, 0);
STACK_ARRAY_FINISH(hit_attribs);
}
/** Select the next shader based on priorities: