Index: /trunk/archive/pslib/src/Utils/memory.c
===================================================================
--- /trunk/archive/pslib/src/Utils/memory.c	(revision 174)
+++ /trunk/archive/pslib/src/Utils/memory.c	(revision 175)
@@ -82,5 +82,5 @@
 
     if (lineno > 0) {
-	psAbort(__func__, "Detected memory corruption at %s:%d", file, lineno);
+	psAbort(__func__, "Detected a problem in the memory system at %s:%d", file, lineno);
     }
 }
@@ -285,13 +285,13 @@
 
     psMemBlock *ptr = ((psMemBlock *)vptr) - 1;
+    /*
+     * Did the user ask to be informed about this deallocation?
+     */
+    if (ptr->id == p_psMemFreeID) {
+	p_psMemFreeID += memFreeCB(ptr);	
+    }
 
     if (bad_memblock(ptr, 0) || ptr->refCounter != 1) {
 	memProblemCB(ptr, file, lineno);
-    }
-    /*
-     * Did the user ask to be informed about this allocation?
-     */
-    if(ptr->id == p_psMemFreeID) {
-	p_psMemFreeID += memFreeCB(ptr);	
     }
 
