diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9595419ad8033ad34cf47cafcac3f99450d4b39f..045118afb49eb052280d18630e1e3413ad3e56aa 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
+
+	* tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
+	new_replaceable_dependencies.
+
 2008-01-12  Doug Kwan  <dougkwan@google.com>
 
 	* c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
diff --git a/gcc/tree-ssa-ter.c b/gcc/tree-ssa-ter.c
index d8553ce1c659e4ef465221a38635e7a89c86213b..670d963753930f12c92c228e288b66d983ad4a28 100644
--- a/gcc/tree-ssa-ter.c
+++ b/gcc/tree-ssa-ter.c
@@ -227,6 +227,7 @@ free_temp_expr_table (temp_expr_table_p t)
 #endif
 
   BITMAP_FREE (t->partition_in_use);
+  BITMAP_FREE (t->new_replaceable_dependencies);
 
   for (i = 0; i <= num_ssa_names; i++)
     if (t->expr_decl_uids[i])
@@ -235,6 +236,7 @@ free_temp_expr_table (temp_expr_table_p t)
 
   free (t->kill_list);
   free (t->partition_dependencies);
+  free (t->num_in_part);
 
   if (t->replaceable_expressions)
     ret = t->replaceable_expressions;