From: Eric Engestrom Date: Mon, 31 Jul 2017 13:13:58 +0000 (+0100) Subject: util/ra: fix memory leak X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=70c6f656f952111bdd7a5d1c02bb99bfb0219622;p=mesa.git 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 Reviewed-by: Eric Anholt Reviewed-by: Nicolai Hähnle --- 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; }