pan/bi: Fix memory leaks.
authorVinson Lee <vlee@freedesktop.org>
Sun, 18 Sep 2022 17:15:31 +0000 (10:15 -0700)
committerVinson Lee <vlee@freedesktop.org>
Sun, 18 Sep 2022 17:18:04 +0000 (10:18 -0700)
commitbbd549205c0e907839146ed24a4adc4c0ac17d57
treecd33541e216e8db56ec95690650033faabbce812
parentbcd75a13e091e3a9a09cef63a6b9287dd73ca83f
pan/bi: Fix memory leaks.

Fix defects reported by Coverity Scan.

Resource leak (RESOURCE_LEAK)
leaked_storage: Variable used going out of scope leaks the storage it points to.
leaked_storage: Variable multiple_uses going out of scope leaks the storage it points to.

Fixes: 8fb415fee20 ("pan/bi: Reduce some moves when going out-of-SSA")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18653>
src/panfrost/bifrost/bi_ra.c