Index: /trunk/psLib/src/dataManip/psFunctions.c
===================================================================
--- /trunk/psLib/src/dataManip/psFunctions.c	(revision 1946)
+++ /trunk/psLib/src/dataManip/psFunctions.c	(revision 1947)
@@ -7,6 +7,6 @@
  *  polynomials.  It also contains a Gaussian functions.
  *
- *  @version $Revision: 1.44 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-10-03 23:35:47 $
+ *  @version $Revision: 1.45 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-10-04 00:40:23 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -1685,4 +1685,29 @@
 }
 
+// XXX: Have Robert put the dealocator in the memory file.
+int p_psSpline1DFree(psSpline1D *tmpSpline)
+{
+    int i;
+
+    if (tmpSpline == NULL) {
+        return(0);
+    }
+
+    if (tmpSpline->spline != NULL) {
+        for (i=0;i<tmpSpline->n;i++) {
+            psFree((tmpSpline->spline)[i]);
+        }
+        psFree(tmpSpline->spline);
+    }
+
+    if (tmpSpline->p_psDeriv2 != NULL) {
+        psFree(tmpSpline->p_psDeriv2);
+    }
+    psFree(tmpSpline->domains);
+    psFree(tmpSpline);
+
+    return(0);
+}
+
 /*****************************************************************************
  *****************************************************************************/
Index: /trunk/psLib/src/dataManip/psFunctions.h
===================================================================
--- /trunk/psLib/src/dataManip/psFunctions.h	(revision 1946)
+++ /trunk/psLib/src/dataManip/psFunctions.h	(revision 1947)
@@ -12,6 +12,6 @@
 *  @author George Gusciora, MHPCC
 *
-*  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2004-09-23 06:12:22 $
+*  @version $Revision: 1.27 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2004-10-04 00:40:23 $
 *
 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -395,4 +395,6 @@
                             float max);
 
+int p_psSpline1DFree(psSpline1D *tmpSpline);
+
 psSpline1D *psSpline1DAllocGeneric(const psVector *bounds,
                                    int order);
Index: /trunk/psLib/src/math/psPolynomial.c
===================================================================
--- /trunk/psLib/src/math/psPolynomial.c	(revision 1946)
+++ /trunk/psLib/src/math/psPolynomial.c	(revision 1947)
@@ -7,6 +7,6 @@
  *  polynomials.  It also contains a Gaussian functions.
  *
- *  @version $Revision: 1.44 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-10-03 23:35:47 $
+ *  @version $Revision: 1.45 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-10-04 00:40:23 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -1685,4 +1685,29 @@
 }
 
+// XXX: Have Robert put the dealocator in the memory file.
+int p_psSpline1DFree(psSpline1D *tmpSpline)
+{
+    int i;
+
+    if (tmpSpline == NULL) {
+        return(0);
+    }
+
+    if (tmpSpline->spline != NULL) {
+        for (i=0;i<tmpSpline->n;i++) {
+            psFree((tmpSpline->spline)[i]);
+        }
+        psFree(tmpSpline->spline);
+    }
+
+    if (tmpSpline->p_psDeriv2 != NULL) {
+        psFree(tmpSpline->p_psDeriv2);
+    }
+    psFree(tmpSpline->domains);
+    psFree(tmpSpline);
+
+    return(0);
+}
+
 /*****************************************************************************
  *****************************************************************************/
Index: /trunk/psLib/src/math/psPolynomial.h
===================================================================
--- /trunk/psLib/src/math/psPolynomial.h	(revision 1946)
+++ /trunk/psLib/src/math/psPolynomial.h	(revision 1947)
@@ -12,6 +12,6 @@
 *  @author George Gusciora, MHPCC
 *
-*  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2004-09-23 06:12:22 $
+*  @version $Revision: 1.27 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2004-10-04 00:40:23 $
 *
 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -395,4 +395,6 @@
                             float max);
 
+int p_psSpline1DFree(psSpline1D *tmpSpline);
+
 psSpline1D *psSpline1DAllocGeneric(const psVector *bounds,
                                    int order);
Index: /trunk/psLib/src/math/psSpline.c
===================================================================
--- /trunk/psLib/src/math/psSpline.c	(revision 1946)
+++ /trunk/psLib/src/math/psSpline.c	(revision 1947)
@@ -7,6 +7,6 @@
  *  polynomials.  It also contains a Gaussian functions.
  *
- *  @version $Revision: 1.44 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-10-03 23:35:47 $
+ *  @version $Revision: 1.45 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-10-04 00:40:23 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -1685,4 +1685,29 @@
 }
 
+// XXX: Have Robert put the dealocator in the memory file.
+int p_psSpline1DFree(psSpline1D *tmpSpline)
+{
+    int i;
+
+    if (tmpSpline == NULL) {
+        return(0);
+    }
+
+    if (tmpSpline->spline != NULL) {
+        for (i=0;i<tmpSpline->n;i++) {
+            psFree((tmpSpline->spline)[i]);
+        }
+        psFree(tmpSpline->spline);
+    }
+
+    if (tmpSpline->p_psDeriv2 != NULL) {
+        psFree(tmpSpline->p_psDeriv2);
+    }
+    psFree(tmpSpline->domains);
+    psFree(tmpSpline);
+
+    return(0);
+}
+
 /*****************************************************************************
  *****************************************************************************/
Index: /trunk/psLib/src/math/psSpline.h
===================================================================
--- /trunk/psLib/src/math/psSpline.h	(revision 1946)
+++ /trunk/psLib/src/math/psSpline.h	(revision 1947)
@@ -12,6 +12,6 @@
 *  @author George Gusciora, MHPCC
 *
-*  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2004-09-23 06:12:22 $
+*  @version $Revision: 1.27 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2004-10-04 00:40:23 $
 *
 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -395,4 +395,6 @@
                             float max);
 
+int p_psSpline1DFree(psSpline1D *tmpSpline);
+
 psSpline1D *psSpline1DAllocGeneric(const psVector *bounds,
                                    int order);
