mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
broadcom/compiler: free defin and defout arrays if they already exist
Just like we do for everything else here, since we are going to realloc them again right below. Notice this is not exactly a memory leak, since all these arrays are allocated with ralloc using v3d_compile as context, so all allocations will be eventually freed when the context is destroyed. Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24001>
This commit is contained in:
parent
b9de7da421
commit
dcc6288a13
1 changed files with 2 additions and 0 deletions
|
|
@ -306,6 +306,8 @@ vir_calculate_live_intervals(struct v3d_compile *c)
|
|||
|
||||
vir_for_each_block(block, c) {
|
||||
ralloc_free(block->def);
|
||||
ralloc_free(block->defin);
|
||||
ralloc_free(block->defout);
|
||||
ralloc_free(block->use);
|
||||
ralloc_free(block->live_in);
|
||||
ralloc_free(block->live_out);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue