From: Eric Anholt Date: Mon, 15 Sep 2014 18:48:02 +0000 (-0700) Subject: vc4: Fix memory leaks in register allocation. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3c6d85e725eca4e221ed8cad8fe5a398087509d2;p=mesa.git vc4: Fix memory leaks in register allocation. --- 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; }