PR jit/63854: Fix memory leak of save_decoded_options
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 19 Nov 2014 19:33:49 +0000 (19:33 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Wed, 19 Nov 2014 19:33:49 +0000 (19:33 +0000)
gcc/ChangeLog:
PR jit/63854
* toplev.c (toplev::finalize): Clean up save_decoded_options.

From-SVN: r217795

gcc/ChangeLog
gcc/toplev.c

index 18115e157eadc6d5d7475acd699609de7b8eaa1f..66f144d8f82ba96e93ce9c42377704c35ede3722 100644 (file)
@@ -1,3 +1,8 @@
+2014-11-19  David Malcolm  <dmalcolm@redhat.com>
+
+       PR jit/63854
+       * toplev.c (toplev::finalize): Clean up save_decoded_options.
+
 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
 
        PR jit/63854
index b1f224d406218066c0abf00990bc667d77971068..f1478d0ebbdfa212fef7a98432860379cd1c947e 100644 (file)
@@ -2174,6 +2174,8 @@ toplev::finalize (void)
   finalize_options_struct (&global_options);
   finalize_options_struct (&global_options_set);
 
+  XDELETEVEC (save_decoded_options);
+
   /* Clean up the context (and pass_manager etc). */
   delete g;
   g = NULL;