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:
Caio Oliveira
2025-04-05 23:12:28 -07:00
committed by Marge Bot
parent c33ee4adae
commit 9845693912
+3 -1
View File
@@ -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;
}