From 3c6d85e725eca4e221ed8cad8fe5a398087509d2 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 15 Sep 2014 11:48:02 -0700 Subject: [PATCH] vc4: Fix memory leaks in register allocation. --- src/gallium/drivers/vc4/vc4_register_allocate.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.30.2