This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Tested on powerpc-apple-darwin with no regressions and the memory leak fixed.
* tree-ssa-dom.c (tree_ssa_dominator_optimize): Free nonzero_vars at the end of the function.
Patch: Index: tree-ssa-dom.c =================================================================== RCS file: /cvs/gcc/gcc/gcc/Attic/tree-ssa-dom.c,v retrieving revision 1.1.2.161 diff -u -p -r1.1.2.161 tree-ssa-dom.c --- tree-ssa-dom.c 5 May 2004 17:14:20 -0000 1.1.2.161 +++ tree-ssa-dom.c 7 May 2004 14:05:05 -0000 @@ -630,6 +630,9 @@ tree_ssa_dominator_optimize (void)
/* And finalize the dominator walker. */ fini_walk_dominator_tree (&walk_data); + + /* Free nonzero_vars. */ + BITMAP_XFREE (nonzero_vars); }
Attachment:
fix-dom-leak.diff.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |