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: 8fb415fee2 ("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>
This commit is contained in:
Vinson Lee 2022-09-18 10:15:31 -07:00
parent bcd75a13e0
commit bbd549205c

View file

@ -1049,6 +1049,8 @@ bi_out_of_ssa(bi_context *ctx)
}
}
free(used);
free(multiple_uses);
return first_reg;
}