mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
aco: fix file leak in ra_fail()
Fixes: c2b1978aa4 ("aco: rework the way various compilation/validation errors are reported")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6399>
This commit is contained in:
parent
74ac8f3f64
commit
58817bda8b
1 changed files with 1 additions and 0 deletions
|
|
@ -512,6 +512,7 @@ bool ra_fail(Program *program, Location loc, Location loc2, const char *fmt, ...
|
|||
aco_print_instr(loc2.instr, memf);
|
||||
}
|
||||
fprintf(memf, "\n\n");
|
||||
fclose(memf);
|
||||
|
||||
aco_err(program, out);
|
||||
free(out);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue