Index: trunk/psphot/src/psphotChoosePSF.c
===================================================================
--- trunk/psphot/src/psphotChoosePSF.c	(revision 18038)
+++ trunk/psphot/src/psphotChoosePSF.c	(revision 18039)
@@ -181,4 +181,6 @@
         bool mdok;                      // Status of MD lookup
         if (!psMetadataLookupBool(&mdok, recipe, PSPHOT_RECIPE_PSF_FAKE_ALLOW)) {
+	    psFree (modelNames);
+	    psFree(options);
             return false;
         }
@@ -186,6 +188,4 @@
         psErrorStackPrint (stderr, "Using guess PSF model");
         psErrorClear();
-
-        psFree(options);
 
         // unset the PSFSTAR flags (none are used):
