diff options
author | David Malcolm <dmalcolm@redhat.com> | 2015-01-12 19:57:05 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2015-01-12 19:57:05 +0000 |
commit | 1c35cc2c75454a707a386d975449293d19aeef4a (patch) | |
tree | f1ae110553c3ec747dd9bbbe0cb872ae1908b476 /gcc | |
parent | cfd02f69d7657923f946704e3e8fd3f143724290 (diff) | |
download | gcc-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')
-rw-r--r-- | gcc/jit/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/jit/jit-playback.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/jit/ChangeLog b/gcc/jit/ChangeLog index 1b79198..1ccbdf9 100644 --- a/gcc/jit/ChangeLog +++ b/gcc/jit/ChangeLog @@ -1,5 +1,10 @@ 2015-01-12 David Malcolm <dmalcolm@redhat.com> + * jit-playback.c (gcc::jit::playback::context::read_dump_file): + Add missing fclose on error-handling path. + +2015-01-12 David Malcolm <dmalcolm@redhat.com> + * docs/cp/topics/expressions.rst (Global variables): Add enum gcc_jit_global_kind param to gccjit::context::new_global. * docs/topics/expressions.rst (Global variables): Likewise. 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; } |