Index: trunk/psLib/src/sys/psMemory.c
===================================================================
--- trunk/psLib/src/sys/psMemory.c	(revision 32716)
+++ trunk/psLib/src/sys/psMemory.c	(revision 32722)
@@ -1208,4 +1208,12 @@
     #endif
 
+# if (PS_TRACE_ON)    
+    // before freeing a particular block of memory, fill the entire block with FF to poison it
+    // this should trigger any bad reactions early.  this may be costly, so on do it for
+    // unoptimzed builds
+    size_t totalSize = sizeof(psMemBlock) + memBlock->userMemorySize + sizeof(void *);
+    memset ((void *) memBlock, 0xff, totalSize);
+# endif
+
     free(memBlock);
 
