From: Urja Rannikko Date: Fri, 6 Dec 2019 01:20:34 +0000 (+0000) Subject: panfrost: free allocations in schedule_block X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5b6108834bddd34846722440b40b459b81a95cd8;p=mesa.git panfrost: free allocations in schedule_block Signed-off-by: Urja Rannikko Reviewed-by: Alyssa Rosenzweig --- diff --git a/src/panfrost/midgard/midgard_schedule.c b/src/panfrost/midgard/midgard_schedule.c index b2f90e38822..5e6ac15e539 100644 --- a/src/panfrost/midgard/midgard_schedule.c +++ b/src/panfrost/midgard/midgard_schedule.c @@ -1094,6 +1094,9 @@ schedule_block(compiler_context *ctx, midgard_block *block) mir_foreach_instr_in_block_scheduled_rev(block, ins) { list_add(&ins->link, &block->instructions); } + + free(instructions); /* Allocated by flatten_mir() */ + free(worklist); } /* When we're 'squeezing down' the values in the IR, we maintain a hash