From d5bee0f2af97caf82b004503b2a63638e5a87334 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Wed, 19 Nov 2014 19:43:20 +0000 Subject: [PATCH] PR jit/63854: Fix leak of opts_obstack gcc/ChangeLog: PR jit/63854 * toplev.c (toplev::finalize): Free opts_obstack. From-SVN: r217796 --- gcc/ChangeLog | 5 +++++ gcc/toplev.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 66f144d8f82..e09ccd684c1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-11-19 David Malcolm + + PR jit/63854 + * toplev.c (toplev::finalize): Free opts_obstack. + 2014-11-19 David Malcolm PR jit/63854 diff --git a/gcc/toplev.c b/gcc/toplev.c index f1478d0ebbd..9931f7a33da 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -2179,4 +2179,6 @@ toplev::finalize (void) /* Clean up the context (and pass_manager etc). */ delete g; g = NULL; + + obstack_free (&opts_obstack, NULL); } -- 2.30.2