agx: Plug memory leak in register allocator

Fixes: 85e18deb18 ("agx: Assign registers locally")
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reported-by: Coverity
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12053>
(cherry picked from commit 465224379c)

Conflicts:
	src/asahi/compiler/agx_register_allocate.c
This commit is contained in:
Alyssa Rosenzweig 2021-07-24 14:56:52 -04:00 committed by Dylan Baker
parent 053b80c70f
commit cb9df156a6
2 changed files with 2 additions and 1 deletions

View file

@ -238,7 +238,7 @@
"description": "agx: Plug memory leak in register allocator",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "85e18deb18a195cea78da8746fe9a2ef8e74e049"
},

View file

@ -228,5 +228,6 @@ agx_ra(agx_context *ctx)
}
}
free(ssa_to_reg);
free(alloc);
}