From: David Malcolm Date: Wed, 19 Nov 2014 19:43:20 +0000 (+0000) Subject: PR jit/63854: Fix leak of opts_obstack X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d5bee0f2af97caf82b004503b2a63638e5a87334;p=gcc.git PR jit/63854: Fix leak of opts_obstack gcc/ChangeLog: PR jit/63854 * toplev.c (toplev::finalize): Free opts_obstack. From-SVN: r217796 --- 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); }