panfrost: free spill cost table in mir_spill_register
authorUrja Rannikko <urjaman@gmail.com>
Fri, 6 Dec 2019 02:47:50 +0000 (02:47 +0000)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 6 Dec 2019 15:26:13 +0000 (15:26 +0000)
Signed-off-by: Urja Rannikko <urjaman@gmail.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/panfrost/midgard/midgard_schedule.c

index dcf3764d688d904b44632f7100d18b5794c27934..d05bdf79d4782715f66d7cc3e4dbd289e41ff925 100644 (file)
@@ -1392,6 +1392,8 @@ static void mir_spill_register(
         mir_foreach_instr_global(ctx, ins) {
                 ins->hint = false;
         }
+
+        free(cost);
 }
 
 void