This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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;
       }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]