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:
committed by
Marge Bot
parent
bacc0451bc
commit
d983280da9
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user