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>
(cherry picked from commit 876e6a3bfe)
This commit is contained in:
Samuel Pitoiset 2025-10-13 14:06:14 +02:00 committed by Eric Engestrom
parent 649cd492e5
commit 8b8fdc5ae7
2 changed files with 3 additions and 1 deletions

View file

@ -1394,7 +1394,7 @@
"description": "radv/rt: fix memory leak in lower_rt_instructions_monolithic()",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -1868,6 +1868,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: