[Scummvm-cvs-logs] CVS: scummvm/common main.cpp,1.33,1.34

Max Horn fingolfin at users.sourceforge.net
Mon Jul 7 16:12:09 CEST 2003


Update of /cvsroot/scummvm/scummvm/common
In directory sc8-pr-cvs1:/tmp/cvs-serv26724/common

Modified Files:
	main.cpp 
Log Message:
check for odd addresses being free'd

Index: main.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/main.cpp,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- main.cpp	4 Jul 2003 13:17:56 -0000	1.33
+++ main.cpp	7 Jul 2003 23:11:19 -0000	1.34
@@ -258,6 +258,9 @@
 		printf("ERROR: freeing 0xE7E7E7E7\n");
 		exit(1);
 	}
+	if ((int)ptr & 1) {
+		warning("Freeing odd address 0x%x\n", ptr);
+	}
 	free(ptr);
 }
 #endif





More information about the Scummvm-git-logs mailing list