aboutsummaryrefslogtreecommitdiff
path: root/gcc/jit/jit-playback.c
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2015-01-12 19:57:05 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2015-01-12 19:57:05 +0000
commit1c35cc2c75454a707a386d975449293d19aeef4a (patch)
treef1ae110553c3ec747dd9bbbe0cb872ae1908b476 /gcc/jit/jit-playback.c
parentcfd02f69d7657923f946704e3e8fd3f143724290 (diff)
downloadgcc-1c35cc2c75454a707a386d975449293d19aeef4a.zip
gcc-1c35cc2c75454a707a386d975449293d19aeef4a.tar.gz
gcc-1c35cc2c75454a707a386d975449293d19aeef4a.tar.bz2
jit-playback.c: fix missing fclose
gcc/jit/ChangeLog: * jit-playback.c (gcc::jit::playback::context::read_dump_file): Add missing fclose on error-handling path. From-SVN: r219487
Diffstat (limited to 'gcc/jit/jit-playback.c')
-rw-r--r--gcc/jit/jit-playback.c1
1 files changed, 1 insertions, 0 deletions
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;
}