From 5b6108834bddd34846722440b40b459b81a95cd8 Mon Sep 17 00:00:00 2001 From: Urja Rannikko Date: Fri, 6 Dec 2019 01:20:34 +0000 Subject: [PATCH] panfrost: free allocations in schedule_block Signed-off-by: Urja Rannikko Reviewed-by: Alyssa Rosenzweig --- src/panfrost/midgard/midgard_schedule.c | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.30.2