From 1c35cc2c75454a707a386d975449293d19aeef4a Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Mon, 12 Jan 2015 19:57:05 +0000 Subject: [PATCH] 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 --- gcc/jit/ChangeLog | 5 +++++ gcc/jit/jit-playback.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gcc/jit/ChangeLog b/gcc/jit/ChangeLog index 1b79198a7f4..1ccbdf986e2 100644 --- a/gcc/jit/ChangeLog +++ b/gcc/jit/ChangeLog @@ -1,3 +1,8 @@ +2015-01-12 David Malcolm + + * jit-playback.c (gcc::jit::playback::context::read_dump_file): + Add missing fclose on error-handling path. + 2015-01-12 David Malcolm * docs/cp/topics/expressions.rst (Global variables): Add diff --git a/gcc/jit/jit-playback.c b/gcc/jit/jit-playback.c index 0e45e0267e3..ca4e112d265 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; } -- 2.30.2