Index: trunk/psphot/src/psphotChoosePSF.c
===================================================================
--- trunk/psphot/src/psphotChoosePSF.c	(revision 13804)
+++ trunk/psphot/src/psphotChoosePSF.c	(revision 13834)
@@ -4,5 +4,5 @@
 pmPSF *psphotChoosePSF (pmReadout *readout, psArray *sources, psMetadata *recipe) {
 
-    bool            status;
+    bool status;
 
     psTimerStart ("psphot");
@@ -64,5 +64,7 @@
 
     if (stars->n == 0) {
-        psError(PSPHOT_ERR_PSF, true, "Failed to find any PSF candidates");
+        psLogMsg ("psphot.choosePSF", PS_LOG_WARN, "Failed to find any PSF candidates");
+	psFree (stars);
+	psFree (psfTrendMask);
         return NULL;
     }
