From 58817bda8bccc7d5803f69fb029ae741dbf2a814 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 20 Aug 2020 09:41:46 +0200 Subject: [PATCH] aco: fix file leak in ra_fail() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes: c2b1978aa47 ("aco: rework the way various compilation/validation errors are reported") Signed-off-by: Samuel Pitoiset Reviewed-by: Daniel Schürmann Part-of: --- src/amd/compiler/aco_validate.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/amd/compiler/aco_validate.cpp b/src/amd/compiler/aco_validate.cpp index b109c41a72a..0d74458519c 100644 --- a/src/amd/compiler/aco_validate.cpp +++ b/src/amd/compiler/aco_validate.cpp @@ -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); -- 2.30.2