PR jit/63854: Fix leak of opts_obstack
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 19 Nov 2014 19:43:20 +0000 (19:43 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Wed, 19 Nov 2014 19:43:20 +0000 (19:43 +0000)
gcc/ChangeLog:
PR jit/63854
* toplev.c (toplev::finalize): Free opts_obstack.

From-SVN: r217796

gcc/ChangeLog
gcc/toplev.c

index 66f144d8f82ba96e93ce9c42377704c35ede3722..e09ccd684c159f37a2bf07cd030e82aac4540e40 100644 (file)
@@ -1,3 +1,8 @@
+2014-11-19  David Malcolm  <dmalcolm@redhat.com>
+
+       PR jit/63854
+       * toplev.c (toplev::finalize): Free opts_obstack.
+
 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
 
        PR jit/63854
index f1478d0ebbdfa212fef7a98432860379cd1c947e..9931f7a33dac2f41a344f8afa8a331189dd666b8 100644 (file)
@@ -2179,4 +2179,6 @@ toplev::finalize (void)
   /* Clean up the context (and pass_manager etc). */
   delete g;
   g = NULL;
+
+  obstack_free (&opts_obstack, NULL);
 }