diff options
author | Siavash Eliasi <[email protected]> | 2014-02-10 13:28:14 +0330 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2014-02-28 15:57:15 -0800 |
commit | 0fe8d71667b9ea4f4e115dce77f6f829e7681b8c (patch) | |
tree | a63a3e0706374501e9930f50f19a634836eab228 /src/gallium/drivers/r300/compiler | |
parent | ff2cbf9e0ca0ee46a15add1a42cd48705c84e0de (diff) |
r300g/tests: Added missing fclose for FILE resource.
Reviewed-by: Tom Stellard <[email protected]>
Reviewed-by: Kristian Høgsberg <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r300/compiler')
-rw-r--r-- | src/gallium/drivers/r300/compiler/tests/rc_test_helpers.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/compiler/tests/rc_test_helpers.c b/src/gallium/drivers/r300/compiler/tests/rc_test_helpers.c index b4e30d8a872..239a76298fe 100644 --- a/src/gallium/drivers/r300/compiler/tests/rc_test_helpers.c +++ b/src/gallium/drivers/r300/compiler/tests/rc_test_helpers.c @@ -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; } |