Index: trunk/psLib/src/sys/psMemory.c
===================================================================
--- trunk/psLib/src/sys/psMemory.c	(revision 1821)
+++ trunk/psLib/src/sys/psMemory.c	(revision 1826)
@@ -8,6 +8,6 @@
 *  @author Robert Lupton, Princeton University
 *
-*  @version $Revision: 1.39 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2004-09-16 23:51:07 $
+*  @version $Revision: 1.40 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2004-09-17 19:23:24 $
 *
 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -392,5 +392,8 @@
 
         if (ptr == NULL) {
-            psAbort(__func__, "Failed to reallocate %ld bytes at %s:%d", size, file, lineno);
+            ptr = memExhaustedCallback(size);
+            if(ptr == NULL) {
+                psAbort(__func__, "Failed to reallocate %ld bytes at %s:%d", size, file, lineno);
+            }
         }
 
