mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
r300g/tests: Added missing fclose for FILE resource.
Reviewed-by: Tom Stellard <thomas.stellard@amd.com> Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
This commit is contained in:
parent
ff2cbf9e0c
commit
0fe8d71667
1 changed files with 3 additions and 0 deletions
|
|
@ -557,6 +557,7 @@ unsigned load_program(
|
|||
if (last_char && last_char != '\n') {
|
||||
fprintf(stderr, "Error line cannot be longer than 100 "
|
||||
"characters:\n%s\n", line);
|
||||
fclose(file);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -605,5 +606,7 @@ unsigned load_program(
|
|||
// XXX: Parse immediates from the file.
|
||||
add_instruction(c, test->input[i]);
|
||||
}
|
||||
|
||||
fclose(file);
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue