[Mesa-dev] [PATCH mesa] util/ra: fix memory leak
Eric Engestrom
eric at engestrom.ch
Sat Jul 29 22:53:09 UTC 2017
CID: 1415909
Fixes: 7a34a0e8903249c41fae "ra: Add a callback for selecting a register
from what's available."
Signed-off-by: Eric Engestrom <eric at engestrom.ch>
---
src/util/register_allocate.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/util/register_allocate.c b/src/util/register_allocate.c
index b06a61f24a..f6475b6b93 100644
--- a/src/util/register_allocate.c
+++ b/src/util/register_allocate.c
@@ -638,6 +638,7 @@ ra_select(struct ra_graph *g)
}
r = g->select_reg_callback(g, select_regs, g->select_reg_callback_data);
+ free(select_regs);
} else {
/* Find the lowest-numbered reg which is not used by a member
* of the graph adjacent to us.
--
Cheers,
Eric
More information about the mesa-dev
mailing list