From 0367bdbdc465d4568733099dae9f2cc2e3eb2021 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 11 Jan 2021 10:40:21 -0800 Subject: [PATCH] gallium/ntt: Fix leak of the per-instr liveness information. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: 34cc6a804ec9 ("gallium: Add a nir-to-TGSI pass.") Reviewed-by: Adam Jackson Reviewed-by: Marek Olšák Part-of: --- src/gallium/auxiliary/nir/nir_to_tgsi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/auxiliary/nir/nir_to_tgsi.c b/src/gallium/auxiliary/nir/nir_to_tgsi.c index 540e4be236b..5b3760ea059 100644 --- a/src/gallium/auxiliary/nir/nir_to_tgsi.c +++ b/src/gallium/auxiliary/nir/nir_to_tgsi.c @@ -2193,6 +2193,9 @@ ntt_emit_impl(struct ntt_compile *c, nir_function_impl *impl) ntt_setup_registers(c, &impl->registers); ntt_emit_cf_list(c, &impl->body); + + ralloc_free(c->liveness); + c->liveness = NULL; } static int