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:
Alyssa Rosenzweig
2023-06-28 20:12:25 -04:00
committed by Marge Bot
parent 2a334a9f4d
commit 02ac7305a0

View File

@@ -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);