mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
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:
parent
bcd75a13e0
commit
bbd549205c
1 changed files with 2 additions and 0 deletions
|
|
@ -1049,6 +1049,8 @@ bi_out_of_ssa(bi_context *ctx)
|
|||
}
|
||||
}
|
||||
|
||||
free(used);
|
||||
free(multiple_uses);
|
||||
return first_reg;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue