aboutsummaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2017-07-31 14:13:58 +0100
committerEric Anholt <[email protected]>2017-07-31 12:55:19 -0700
commit70c6f656f952111bdd7a5d1c02bb99bfb0219622 (patch)
treef7c45057a60585275e2d5e494aa5dd9d833247f1 /src/util
parent110dda0e3f451c87bfa9a8f0e023547d1ed3803f (diff)
util/ra: fix memory leak
CID: 1415909 Fixes: 7a34a0e8903249c41fae "ra: Add a callback for selecting a register from what's available." Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/register_allocate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/register_allocate.c b/src/util/register_allocate.c
index b06a61f24a3..de8978bb93e 100644
--- a/src/util/register_allocate.c
+++ b/src/util/register_allocate.c
@@ -672,6 +672,8 @@ ra_select(struct ra_graph *g)
start_search_reg = r + 1;
}
+ free(select_regs);
+
return true;
}