r300: fix memory leak in contant remaping

Signed-off-by: Pavel Ondračka <pavel.ondracka@gmail.com>
Reviewed-by: Filip Gawin <None>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33066>
This commit is contained in:
Pavel Ondračka
2025-01-15 15:12:48 +01:00
committed by Marge Bot
parent f00f08c02d
commit 220590f41a
@@ -275,6 +275,7 @@ rc_remove_unused_constants(struct radeon_compiler *c, void *user)
}
free(s->inv_remap_table);
free(s->is_used_as_vector);
if (c->Debug & RC_DBG_LOG)
rc_constants_print(&c->Program.Constants, s->remap_table);