Reported by David Binderman within discussion of PR jit/63854.
Before/after jit.sum has 7272 passes.
Committed to trunk as r219487.
gcc/jit/ChangeLog:
* jit-playback.c (gcc::jit::playback::context::read_dump_file):
Add missing fclose on error-handling path.
---
gcc/jit/jit-playback.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/gcc/jit/jit-playback.c b/gcc/jit/jit-playback.c
index 0e45e02..ca4e112 100644
--- a/gcc/jit/jit-playback.c
+++ b/gcc/jit/jit-playback.c
@@ -1947,6 +1947,7 @@ playback::context::read_dump_file (const char *path)
{
add_error (NULL, "error reading from %s", path);
free (result);
+ fclose (f_in);
return NULL;
}
--
1.8.5.3