vc4: Fix memory leaks in register allocation.
authorEric Anholt <eric@anholt.net>
Mon, 15 Sep 2014 18:48:02 +0000 (11:48 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 16 Sep 2014 22:14:52 +0000 (15:14 -0700)
src/gallium/drivers/vc4/vc4_register_allocate.c

index 97d4fb3d131e9b8787219ddf8ca0117997acc25b..2ff130618cdb5468256c6acbd37b064de65f2e5d 100644 (file)
@@ -153,5 +153,8 @@ vc4_register_allocate(struct vc4_compile *c)
                 }
         }
 
+        free(reg_allocated);
+        free(reg_uses_remaining);
+
         return temp_registers;
 }