mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
agx: Don't leak ssa_to_reg_out
calloc'd in the RA, should be freed in the RA. Identified with valgrind.
Fixes: 6b13616cba2 ("agx: Implement vector live range splitting")
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23998>
This commit is contained in:
parent
2a334a9f4d
commit
02ac7305a0
1 changed files with 5 additions and 0 deletions
|
|
@ -1192,6 +1192,11 @@ agx_ra(agx_context *ctx)
|
|||
}
|
||||
}
|
||||
|
||||
agx_foreach_block(ctx, block) {
|
||||
free(block->ssa_to_reg_out);
|
||||
block->ssa_to_reg_out = NULL;
|
||||
}
|
||||
|
||||
free(src_to_collect);
|
||||
free(ssa_to_reg);
|
||||
free(ncomps);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue