Index: trunk/psLib/src/sysUtils/psMemory.c
===================================================================
--- trunk/psLib/src/sysUtils/psMemory.c	(revision 850)
+++ trunk/psLib/src/sysUtils/psMemory.c	(revision 876)
@@ -8,6 +8,6 @@
  *  @author Robert Lupton, Princeton University
  *
- *  @version $Revision: 1.23 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-06-04 02:17:32 $
+ *  @version $Revision: 1.24 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-06-04 23:46:48 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -507,2 +507,15 @@
 }
 
+void p_psCustomFree(psFreeFcn fcn, void* ptr)
+{
+
+    if (fcn == NULL) {
+        return;
+    } else {
+        if (fcn == PS_FREE) {
+            psFree(ptr);
+        } else {
+            fcn(ptr);
+        }
+    }
+}
