This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH]: Fix small memory leak in tree-ssa-alias
- From: Daniel Berlin <dberlin at dberlin dot org>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 10 Jul 2005 14:18:33 -0400
- Subject: [PATCH]: Fix small memory leak in tree-ssa-alias
I forgot a free of the item in free_used_part_map.
Fixed thusly.
Bootstrapped and regtested on i686-pc-linux-gnu, committed to mainline.
2005-07-10 Daniel Berlin <dberlin@dberlin.org>
* tree-ssa-alias.c (free_used_part_map): Add missing free.
Index: tree-ssa-alias.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-ssa-alias.c,v
retrieving revision 2.101
diff -u -p -r2.101 tree-ssa-alias.c
--- tree-ssa-alias.c 10 Jul 2005 00:27:51 -0000 2.101
+++ tree-ssa-alias.c 10 Jul 2005 18:16:07 -0000
@@ -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. */