This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
PATCH to fix duplicate free
- From: Per Bothner <per at bothner dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: java at gcc dot gnu dot org
- Date: Fri, 07 Dec 2001 10:19:54 -0800
- Subject: PATCH to fix duplicate free
I checked in the following patch. I found it while
trying to compile rhug. I checked it in even before
doing a bootstrap and check (which I'm doing now),
because it seemed obvious and urgent.
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/
2001-12-07 Per Bothner <per@bothner.com>
* check-init.c (check_init): Fix typo freeing memory twice.
Index: check-init.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/check-init.c,v
retrieving revision 1.36
diff -u -r1.36 check-init.c
--- check-init.c 2001/12/06 23:12:55 1.36
+++ check-init.c 2001/12/07 18:13:43
@@ -695,8 +695,6 @@
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;
}