re PR middle-end/56461 (GCC is leaking lots of memory)

PR middle-end/56461
	* sched-deps.c (delete_dep_node): Free DEP_REPLACE.

From-SVN: r196467
This commit is contained in:
Jakub Jelinek 2013-03-05 16:49:43 +01:00 committed by Jakub Jelinek
parent 233fa36063
commit 334e71e822
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2013-03-05 Jakub Jelinek <jakub@redhat.com>
PR middle-end/56461
* sched-deps.c (delete_dep_node): Free DEP_REPLACE.
2013-03-05 Richard Biener <rguenther@suse.de>
PR tree-optimization/56521

View File

@ -352,6 +352,8 @@ delete_dep_node (dep_node_t n)
gcc_assert (dep_link_is_detached_p (DEP_NODE_BACK (n))
&& dep_link_is_detached_p (DEP_NODE_FORW (n)));
XDELETE (DEP_REPLACE (DEP_NODE_DEP (n)));
--dn_pool_diff;
pool_free (dn_pool, n);