aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>2001-12-07 10:16:21 -0800
committerPer Bothner <bothner@gcc.gnu.org>2001-12-07 10:16:21 -0800
commita9040c77986f3d775e6054af9cb1aa356e14082c (patch)
tree2d24edeabffc87d5617b7418aa2660993641047d /gcc/java
parent4519d6a34068c1129117781d0ec470bc5137da20 (diff)
downloadgcc-a9040c77986f3d775e6054af9cb1aa356e14082c.zip
gcc-a9040c77986f3d775e6054af9cb1aa356e14082c.tar.gz
gcc-a9040c77986f3d775e6054af9cb1aa356e14082c.tar.bz2
* check-init.c (check_init): Fix typo freeing memory twice.
From-SVN: r47763
Diffstat (limited to 'gcc/java')
-rw-r--r--gcc/java/ChangeLog4
-rw-r--r--gcc/java/check-init.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index e2d32fc..6083f05 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,7 @@
+2001-12-07 Per Bothner <per@bothner.com>
+
+ * check-init.c (check_init): Fix typo freeing memory twice.
+
2001-12-05 Per Bothner <per@bothner.com>
Restore support for static class initialization optimization.
diff --git a/gcc/java/check-init.c b/gcc/java/check-init.c
index 1db19b9..dfc355e 100644
--- a/gcc/java/check-init.c
+++ b/gcc/java/check-init.c
@@ -695,8 +695,6 @@ check_init (exp, before)
check_init (TREE_OPERAND (exp, 1), before);
done_alternative (before, &alt);
FREE_BUFFER(alt.saved, buf);
- if (alt.saved != buf)
- FREE_WORDS (alt.saved);
END_ALTERNATIVES (before, alt);
return;
}