mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 11:40:10 +01:00
vc4: free RA interference graph on failure
This fixes a leak in the driver. Backport-to: 25.1 Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com> Reviewed-by: Jose Maria Casanova Crespo <jmcasanova@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35464>
This commit is contained in:
parent
bacc0451bc
commit
d983280da9
1 changed files with 2 additions and 0 deletions
|
|
@ -411,6 +411,7 @@ vc4_register_allocate(struct vc4_context *vc4, struct vc4_compile *c)
|
|||
*/
|
||||
if (c->fs_threaded) {
|
||||
c->failed = true;
|
||||
ralloc_free(g);
|
||||
free(temp_registers);
|
||||
return NULL;
|
||||
}
|
||||
|
|
@ -441,6 +442,7 @@ vc4_register_allocate(struct vc4_context *vc4, struct vc4_compile *c)
|
|||
}
|
||||
|
||||
c->failed = true;
|
||||
ralloc_free(g);
|
||||
free(temp_registers);
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue