trealloc.m

Stuart R. Anderson anderson at kemper.freedesktop.org
Tue Nov 14 06:52:58 PST 2006


Update of /cvs/xtest/xtest/xts5/tset/Xt13/trealloc
In directory kemper:/tmp/cvs-serv9384

Modified Files:
	trealloc.m 
Log Message:
Fix bug #4528 - avoid potential double free()

Index: trealloc.m
===================================================================
RCS file: /cvs/xtest/xtest/xts5/tset/Xt13/trealloc/trealloc.m,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- trealloc.m	21 Apr 2005 09:40:42 -0000	1.2
+++ trealloc.m	14 Nov 2006 14:52:55 -0000	1.3
@@ -34,6 +34,9 @@
 >># 
 >># Modifications:
 >># $Log$
+>># Revision 1.3  2006/11/14 14:52:55  anderson
+>># Fix bug #4528 - avoid potential double free()
+>>#
 >># Revision 1.2  2005/04/21 09:40:42  ajosey
 >># resync to VSW5.1.5
 >>#
@@ -138,7 +141,8 @@
 		break;
 		}
 	tet_infoline("CLEANUP: Free memory");
-	XtFree(ptr2);
+	if( ptr2 != ptr1 )
+		XtFree(ptr2);
 	XtFree(ptr1);
 	LKROF(pid2, AVSXTTIMEOUT-2);
 	tet_result(TET_PASS);



More information about the xorg-test-commit mailing list