From: Jason Ekstrand Date: Fri, 31 Jul 2015 03:53:04 +0000 (-0700) Subject: ra: Delete the conflict lists in ra_set_finalize X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bdcc8f32304b67cd9c87f5f285c1faa00c51d3ad;p=mesa.git ra: Delete the conflict lists in ra_set_finalize They are never used after the set is finalized so there's no reason to keep them around. Reviewed-by: Matt Turner --- diff --git a/src/util/register_allocate.c b/src/util/register_allocate.c index 129d58d2292..436e008b01a 100644 --- a/src/util/register_allocate.c +++ b/src/util/register_allocate.c @@ -348,6 +348,11 @@ ra_set_finalize(struct ra_regs *regs, unsigned int **q_values) } } } + + for (b = 0; b < regs->count; b++) { + ralloc_free(regs->regs[b].conflict_list); + regs->regs[b].conflict_list = NULL; + } } static void