tree-ssa-alias.c (free_used_part_map): Add missing free.

2005-07-10  Daniel Berlin  <dberlin@dberlin.org>

	* tree-ssa-alias.c (free_used_part_map): Add missing free.
	(up_insert): Ditto.

From-SVN: r101854
This commit is contained in:
Daniel Berlin 2005-07-10 19:34:45 +00:00 committed by Daniel Berlin
parent bd7d504356
commit 46c73d9a4f
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-07-10 Daniel Berlin <dberlin@dberlin.org>
* tree-ssa-alias.c (free_used_part_map): Add missing free.
(up_insert): Ditto.
2005-07-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* pa.c (pa_commutative_p): Make PLUS commutative when

View File

@ -2344,6 +2344,7 @@ static void
free_used_part_map (void *item)
{
free (((struct used_part_map *)item)->to);
free (item);
}
/* Lookup a used_part structure for a UID. */
@ -2372,6 +2373,8 @@ up_insert (unsigned int uid, used_part_t to)
h->to = to;
loc = htab_find_slot_with_hash (used_portions, h,
uid, INSERT);
if (*loc != NULL)
free (*loc);
*(struct used_part_map **) loc = h;
}