Index: trunk/psphot/src/psModulesUtils.c
===================================================================
--- trunk/psphot/src/psModulesUtils.c	(revision 6311)
+++ trunk/psphot/src/psModulesUtils.c	(revision 6379)
@@ -180,4 +180,10 @@
 
   if (config == NULL) return;
+  psFree (config->site);
+  psFree (config->camera);
+  psFree (config->recipe);
+  psFree (config->arguments);
+  psFree (config->options);
+  psFree (config->database);
   return;
 }
@@ -202,4 +208,8 @@
 
   if (file == NULL) return;
+  psFree (file->phu);
+  psFree (file->filename);
+  psFree (file->fpa);
+  psFitsClose (file->fits);
   return;
 }
