OSDN Git Service

* check-init.c (check_init): Fix typo freeing memory twice.
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 Dec 2001 18:16:21 +0000 (18:16 +0000)
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 Dec 2001 18:16:21 +0000 (18:16 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47763 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/java/ChangeLog
gcc/java/check-init.c

index e2d32fc..6083f05 100644 (file)
@@ -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.
index 1db19b9..dfc355e 100644 (file)
@@ -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;
       }