From 163075a027a337c3ed19701f03c8bf2ed7ce26af Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Wed, 13 Oct 2004 17:27:31 +0000 Subject: tree-ssa-dom.c (record_range): Free the element if we are not going to use it. 2004-10-13 Andrew Pinski * tree-ssa-dom.c (record_range): Free the element if we are not going to use it. From-SVN: r88994 --- gcc/tree-ssa-dom.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/tree-ssa-dom.c') diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c index 4ab3613..5595556 100644 --- a/gcc/tree-ssa-dom.c +++ b/gcc/tree-ssa-dom.c @@ -3026,6 +3026,8 @@ record_range (tree cond, basic_block bb) if (*slot == NULL) *slot = (void *) vrp_hash_elt; + else + free (vrp_hash_elt); vrp_hash_elt = (struct vrp_hash_elt *) *slot; vrp_records_p = &vrp_hash_elt->records; -- cgit v1.1