diff options
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; } |