brw: Fix memory leak in EU validation tests
Fixes: 62323a934b ("brw: Add BRW_TYPE_BF validation")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34395>
This commit is contained in:
@@ -121,7 +121,9 @@ validate(struct brw_codegen *p, char **error = nullptr)
|
||||
}
|
||||
|
||||
if (error)
|
||||
*error = group->error;
|
||||
*error = ralloc_strdup(p, group->error);
|
||||
|
||||
ralloc_free(disasm);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user