Index: trunk/ippTools/src/p2searchPendingFrames.c
===================================================================
--- trunk/ippTools/src/p2searchPendingFrames.c	(revision 9392)
+++ trunk/ippTools/src/p2searchPendingFrames.c	(revision 9735)
@@ -37,5 +37,5 @@
 
     // output array of rawSet
-    psArray *frames = psArrayAlloc(exposures->n);
+    psArray *frames = psArrayAllocEmpty(exposures->n);
 
     // 'where' to select each exposure
@@ -55,5 +55,5 @@
 
     return frames;
-} 
+}
 
 // XXX EAM : this may be more efficient if we just select all p2PendingImages
@@ -91,5 +91,5 @@
     psMetadata *where = NULL;
     if (exp_tag) {
-        where = psMetadataAlloc(); 
+        where = psMetadataAlloc();
         if (!psMetadataAddStr(where, PS_LIST_TAIL, "exp_tag", 0, "==", exp_tag)) {
             psError(PS_ERR_UNKNOWN, false, "failed to add item exp_tag");
@@ -97,5 +97,5 @@
             return false;
         }
-    } 
+    }
     psArray *exps = p2PendingExpSelectRowObjects(config->dbh, where, MAX_ROWS);
     psFree(where);
