Index: /trunk/psLib/src/collections/psScalar.c
===================================================================
--- /trunk/psLib/src/collections/psScalar.c	(revision 2661)
+++ /trunk/psLib/src/collections/psScalar.c	(revision 2662)
@@ -8,6 +8,6 @@
  *  @author Ross Harman, MHPCC
  *
- *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-11-04 01:04:57 $
+ *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-12-08 02:03:49 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -73,4 +73,6 @@
                 PS_ERRORTEXT_psScalar_UNSUPPORTED_TYPE,
                 dataType);
+        psFree(scalar);
+        return NULL;
     }
 
@@ -131,4 +133,5 @@
                 PS_ERRORTEXT_psScalar_UNSUPPORTED_TYPE,
                 dataType);
+        return NULL;
     }
 
Index: /trunk/psLib/src/mathtypes/psScalar.c
===================================================================
--- /trunk/psLib/src/mathtypes/psScalar.c	(revision 2661)
+++ /trunk/psLib/src/mathtypes/psScalar.c	(revision 2662)
@@ -8,6 +8,6 @@
  *  @author Ross Harman, MHPCC
  *
- *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-11-04 01:04:57 $
+ *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-12-08 02:03:49 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -73,4 +73,6 @@
                 PS_ERRORTEXT_psScalar_UNSUPPORTED_TYPE,
                 dataType);
+        psFree(scalar);
+        return NULL;
     }
 
@@ -131,4 +133,5 @@
                 PS_ERRORTEXT_psScalar_UNSUPPORTED_TYPE,
                 dataType);
+        return NULL;
     }
 
