mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 05:28:05 +02:00
pvr: cleanup SPM EOT dynarray after upload
Fixes a memory leak found with Valgrind.
Signed-off-by: Frank Binns <frank.binns@imgtec.com>
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Fixes: ad0ca7a879 ("pvr: Compile SPM EOT shader")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24208>
This commit is contained in:
parent
f39df8fe2d
commit
0137de917b
1 changed files with 3 additions and 0 deletions
|
|
@ -732,6 +732,9 @@ pvr_spm_init_eot_state(struct pvr_device *device,
|
|||
usc_shader_binary.size,
|
||||
16,
|
||||
&spm_eot_state->usc_eot_program);
|
||||
|
||||
util_dynarray_fini(&usc_shader_binary);
|
||||
|
||||
if (result != VK_SUCCESS)
|
||||
return result;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue