From 70c6f656f952111bdd7a5d1c02bb99bfb0219622 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Mon, 31 Jul 2017 14:13:58 +0100 Subject: [PATCH] util/ra: fix memory leak MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit CID: 1415909 Fixes: 7a34a0e8903249c41fae "ra: Add a callback for selecting a register from what's available." Signed-off-by: Eric Engestrom Reviewed-by: Eric Anholt Reviewed-by: Nicolai Hähnle --- src/util/register_allocate.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.30.2