Index: /trunk/psLib/src/types/psMetadata.c
===================================================================
--- /trunk/psLib/src/types/psMetadata.c	(revision 9582)
+++ /trunk/psLib/src/types/psMetadata.c	(revision 9583)
@@ -12,6 +12,6 @@
  *  @author Ross Harman, MHPCC
  *
- *  @version $Revision: 1.139 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-10-13 21:13:48 $
+ *  @version $Revision: 1.140 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-10-16 23:34:03 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -417,4 +417,5 @@
     if (in == NULL) {
         psError(PS_ERR_BAD_PARAMETER_NULL, true, "psMetadataCopy: 'in' cannot be NULL");
+        psFree(out);
         return NULL;
     }
@@ -423,4 +424,5 @@
     if (in->list == NULL) {
         psError(PS_ERR_BAD_PARAMETER_NULL, true, "psMetadataCopy: 'in' has NULL list");
+        psFree(out);
         return NULL;
     }
@@ -448,4 +450,5 @@
             psFree(newItem);
             psFree(iter);
+            psFree(out);
             return NULL;
         }
