From: Siavash Eliasi Date: Mon, 10 Feb 2014 09:58:14 +0000 (+0330) Subject: r300g/tests: Added missing fclose for FILE resource. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0fe8d71667b9ea4f4e115dce77f6f829e7681b8c;p=mesa.git r300g/tests: Added missing fclose for FILE resource. Reviewed-by: Tom Stellard Reviewed-by: Kristian Høgsberg --- 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; }