summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2014-09-15 11:48:02 -0700
committerEric Anholt <[email protected]>2014-09-16 15:14:52 -0700
commit3c6d85e725eca4e221ed8cad8fe5a398087509d2 (patch)
treec087856d8da10d2f5a20020ae4f035cf15dd8125 /src/gallium
parentad02ba42f0931abfdb79af29678267bd063e92f3 (diff)
vc4: Fix memory leaks in register allocation.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/vc4/vc4_register_allocate.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_register_allocate.c b/src/gallium/drivers/vc4/vc4_register_allocate.c
index 97d4fb3d131..2ff130618cd 100644
--- a/src/gallium/drivers/vc4/vc4_register_allocate.c
+++ b/src/gallium/drivers/vc4/vc4_register_allocate.c
@@ -153,5 +153,8 @@ vc4_register_allocate(struct vc4_compile *c)
}
}
+ free(reg_allocated);
+ free(reg_uses_remaining);
+
return temp_registers;
}