This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, committed] jit-playback.c: fix missing fclose
- From: David Malcolm <dmalcolm at redhat dot com>
- To: jit at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Cc: David Malcolm <dmalcolm at redhat dot com>
- Date: Mon, 12 Jan 2015 15:07:20 -0500
- Subject: [PATCH, committed] jit-playback.c: fix missing fclose
- Authentication-results: sourceware.org; auth=none
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