]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
jit-playback.c: fix missing fclose
authorDavid Malcolm <dmalcolm@redhat.com>
Mon, 12 Jan 2015 19:57:05 +0000 (19:57 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Mon, 12 Jan 2015 19:57:05 +0000 (19:57 +0000)
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
gcc/jit/jit-playback.c

index 1b79198a7f45b5fe4657796c9d669cacaaadf136..1ccbdf986e278bad72ca91a917813f569b0ce2ff 100644 (file)
@@ -1,3 +1,8 @@
+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
index 0e45e0267e3880cf5c93b8b42d055a99194597c2..ca4e112d265a8b19ea39ea1315c4e7d6bd22061a 100644 (file)
@@ -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;
     }