diff options
author | Urja Rannikko <[email protected]> | 2019-12-06 01:20:34 +0000 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-12-06 15:26:13 +0000 |
commit | 5b6108834bddd34846722440b40b459b81a95cd8 (patch) | |
tree | caa424afadda262440923388f7f62cf59d30f51c | |
parent | e2dbea683c8f25b9a844ae058a6ae8d5020553c4 (diff) |
panfrost: free allocations in schedule_block
Signed-off-by: Urja Rannikko <[email protected]>
Reviewed-by: Alyssa Rosenzweig <[email protected]>
-rw-r--r-- | src/panfrost/midgard/midgard_schedule.c | 3 |
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 |