aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/panfrost/midgard/midgard_schedule.c3
1 files changed, 3 insertions, 0 deletions
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