re PR tree-optimization/21096 (copy-prop leaks memory)
authorKazu Hirata <kazu@cs.umass.edu>
Tue, 19 Apr 2005 11:43:24 +0000 (11:43 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Tue, 19 Apr 2005 11:43:24 +0000 (11:43 +0000)
PR tree-optimization/21096
* tree-ssa-copy.c (fini_copy_prop): Free cached_last_copy_of.

From-SVN: r98405

gcc/ChangeLog
gcc/tree-ssa-copy.c

index 4dfe83bf1e39e85e0a632b6c29f2662904d6bdd3..844197d44f2edfb814ef2cbf019d72ebe2a68f47 100644 (file)
@@ -1,3 +1,8 @@
+2005-04-19  Kazu Hirata  <kazu@cs.umass.edu>
+
+       PR tree-optimization/21096
+       * tree-ssa-copy.c (fini_copy_prop): Free cached_last_copy_of.
+
 2005-04-19  Alan Modra  <amodra@bigpond.net.au>
 
        PR target/21098
index b9544f8897968ca758514c79d0e3ce9c41ef7e29..e657bdb851521a1ec1a10048658f315cb4e438aa 100644 (file)
@@ -901,6 +901,7 @@ fini_copy_prop (void)
 
   substitute_and_fold (copy_of);
 
+  free (cached_last_copy_of);
   free (copy_of);
 }