This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] [committed] fix leak in tree-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 19:12:54 -0400
- Subject: [PATCH] [committed] fix leak in tree-ssa.c
Patch says everything.
Committed as obvious.
ChangeLog:
2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
* tree-ssa.c (delete_tree_ssa): XFREE
bitmaps allocated with BITMAP_XMALLOC.
Patch:
Index: tree-ssa.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-ssa.c,v
retrieving revision 2.1
diff -u -p -r2.1 tree-ssa.c
--- tree-ssa.c 13 May 2004 06:39:50 -0000 2.1
+++ tree-ssa.c 13 May 2004 23:12:03 -0000
@@ -521,7 +521,7 @@ delete_tree_ssa (void)
fini_ssa_operands ();
global_var = NULL_TREE;
- BITMAP_FREE (call_clobbered_vars);
+ BITMAP_XFREE (call_clobbered_vars);
call_clobbered_vars = NULL;
aliases_computed_p = false;
}