From: David Malcolm Date: Mon, 12 Jan 2015 19:57:05 +0000 (+0000) Subject: jit-playback.c: fix missing fclose X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1c35cc2c75454a707a386d975449293d19aeef4a;p=gcc.git 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 --- 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; }