Commit da7c751b by Martin Sebor Committed by Martin Sebor

PR tree-optimization/79699 - small memory leak in MPFR

gcc/ChangeLog:
	* context.c (context::~context): Free MPFR caches to avoid
	a memory leak on program exit.

From-SVN: r245878
parent d9074b29
2017-03-03 Martin Sebor <msebor@redhat.com>
PR tree-optimization/79699
* context.c (context::~context): Free MPFR caches to avoid
a memory leak on program exit.
2017-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/aarch64/aarch64.c (aarch64_float_const_representable_p):
......
......@@ -23,6 +23,7 @@ along with GCC; see the file COPYING3. If not see
#include "context.h"
#include "pass_manager.h"
#include "dumpfile.h"
#include "realmpfr.h"
/* The singleton holder of global state: */
gcc::context *g;
......@@ -42,4 +43,7 @@ gcc::context::~context ()
{
delete m_passes;
delete m_dumps;
/* Release MPFR caches to avoid Valgrind leak reports. */
mpfr_free_cache ();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment