From 7dd2b60b2f68c5c7c2f4add275096ad15566a022 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Wed, 19 Nov 2014 19:33:49 +0000 Subject: [PATCH] PR jit/63854: Fix memory leak of save_decoded_options gcc/ChangeLog: PR jit/63854 * toplev.c (toplev::finalize): Clean up save_decoded_options. From-SVN: r217795 --- gcc/ChangeLog | 5 +++++ gcc/toplev.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 18115e157ea..66f144d8f82 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-11-19 David Malcolm + + PR jit/63854 + * toplev.c (toplev::finalize): Clean up save_decoded_options. + 2014-11-19 David Malcolm PR jit/63854 diff --git a/gcc/toplev.c b/gcc/toplev.c index b1f224d4062..f1478d0ebbd 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -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; -- 2.30.2