panfrost: free last_read/write tables in mir_create_dependency_graph
authorUrja Rannikko <urjaman@gmail.com>
Wed, 4 Dec 2019 14:20:48 +0000 (14:20 +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 addd65306d6bbb148826a5684c1f6b4d69890f98..b2f90e388228c5aa25d81f28e78aaca657494d63 100644 (file)
@@ -165,6 +165,9 @@ mir_create_dependency_graph(midgard_instruction **instructions, unsigned count,
                 util_dynarray_fini(&last_read[i]);
                 util_dynarray_fini(&last_write[i]);
         }
+
+        free(last_read);
+        free(last_write);
 }
 
 /* Does the mask cover more than a scalar? */