projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad02ba4
)
vc4: Fix memory leaks in register allocation.
author
Eric Anholt
<eric@anholt.net>
Mon, 15 Sep 2014 18:48:02 +0000
(11:48 -0700)
committer
Eric Anholt
<eric@anholt.net>
Tue, 16 Sep 2014 22:14:52 +0000
(15:14 -0700)
src/gallium/drivers/vc4/vc4_register_allocate.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/vc4/vc4_register_allocate.c
b/src/gallium/drivers/vc4/vc4_register_allocate.c
index 97d4fb3d131e9b8787219ddf8ca0117997acc25b..2ff130618cdb5468256c6acbd37b064de65f2e5d 100644
(file)
--- 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;
}