This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] [committed] fix another leak in tree-into-ssa.c
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: "gcc-patches at gcc dot gnu dot org Patches" <gcc-patches at gcc dot gnu dot org>
- Cc: Andrew Pinski <pinskia at physics dot uc dot edu>
- Date: Thu, 13 May 2004 18:10:07 -0400
- Subject: [PATCH] [committed] fix another leak in tree-into-ssa.c
Patch says it all.
Committed as obvious.
ChangeLog:
2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
* tree-into-ssa.c (insert_phi_nodes_for): XFREE
bitmaps allocated with BITMAP_XMALLOC.
Patch:
Index: tree-into-ssa.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-into-ssa.c,v
retrieving revision 2.2
diff -u -p -r2.2 tree-into-ssa.c
--- tree-into-ssa.c 13 May 2004 15:26:33 -0000 2.2
+++ tree-into-ssa.c 13 May 2004 22:05:13 -0000
@@ -694,7 +694,7 @@ insert_phi_nodes_for (tree var, bitmap *
create_phi_node (var, BASIC_BLOCK (bb_index));
});
- BITMAP_FREE (phi_insertion_points);
+ BITMAP_XFREE (phi_insertion_points);
}
/* SSA Rewriting Step 2. Rewrite every variable used in each
statement in