Index: trunk/psastro/src/psastroChooseRefstars.c
===================================================================
--- trunk/psastro/src/psastroChooseRefstars.c	(revision 15660)
+++ trunk/psastro/src/psastroChooseRefstars.c	(revision 15666)
@@ -93,4 +93,6 @@
 		    if (!psastroRefstarSubset (readout)) {
 			psError(PSASTRO_ERR_DATA, false, "Can't determine an appropriate refstar subset\n");
+			psFree (index);
+			psFree (view);
 			return false;
 		    }
