From: David Malcolm Date: Wed, 19 Nov 2014 19:45:39 +0000 (+0000) Subject: PR jit/63854: Fix leak of optimization_summary_obstack X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4c4d052c406900d27a167d7f6661f110b2e4d2a2;p=gcc.git PR jit/63854: Fix leak of optimization_summary_obstack gcc/ChangeLog: PR jit/63854 * ipa-reference.c (ipa_reference_c_finalize): Release optimization_summary_obstack. From-SVN: r217797 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e09ccd684c1..173fc1280cf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-11-19 David Malcolm + + PR jit/63854 + * ipa-reference.c (ipa_reference_c_finalize): Release + optimization_summary_obstack. + 2014-11-19 David Malcolm PR jit/63854 diff --git a/gcc/ipa-reference.c b/gcc/ipa-reference.c index b421f63fcb7..1ce06d126d6 100644 --- a/gcc/ipa-reference.c +++ b/gcc/ipa-reference.c @@ -1193,5 +1193,9 @@ make_pass_ipa_reference (gcc::context *ctxt) void ipa_reference_c_finalize (void) { - ipa_init_p = false; + if (ipa_init_p) + { + bitmap_obstack_release (&optimization_summary_obstack); + ipa_init_p = false; + } }