Index: branches/eam_branches/20091201/psphot/src/psphotEfficiency.c
===================================================================
--- branches/eam_branches/20091201/psphot/src/psphotEfficiency.c	(revision 26648)
+++ branches/eam_branches/20091201/psphot/src/psphotEfficiency.c	(revision 26705)
@@ -33,8 +33,6 @@
 
     psKernel *kernel = psImageSmoothKernel(smoothSigma, smoothNsigma); // Kernel used for smoothing
-    psKernel *newCovar = psImageCovarianceCalculate(kernel, ro->covariance); // Covariance matrix
+    *covarFactor = psImageCovarianceCalculateFactor(kernel, ro->covariance);
     psFree(kernel);
-    *covarFactor = psImageCovarianceFactor(newCovar); // Variance factor
-    psFree(newCovar);
 
     psStats *stats = psStatsAlloc(PS_STAT_ROBUST_MEDIAN); // Statistics for variance
Index: branches/eam_branches/20091201/psphot/src/psphotFake.c
===================================================================
--- branches/eam_branches/20091201/psphot/src/psphotFake.c	(revision 26648)
+++ branches/eam_branches/20091201/psphot/src/psphotFake.c	(revision 26705)
@@ -28,8 +28,6 @@
     float smoothSigma  = 0.5*(FWHM_X + FWHM_Y) / (2.0*sqrtf(2.0*log(2.0)));
     psKernel *kernel = psImageSmoothKernel(smoothSigma, smoothNsigma); // Kernel used for smoothing
-    psKernel *newCovar = psImageCovarianceCalculate(kernel, readout->covariance); // Covariance matrix
+    float factor = psImageCovarianceCalculateFactor(kernel, readout->covariance); // Covariance matrix
     psFree(kernel);
-    float factor = psImageCovarianceFactor(newCovar); // Variance factor
-    psFree(newCovar);
 
     psStats *stats = psStatsAlloc(PS_STAT_ROBUST_MEDIAN); // Statistics for variance
Index: branches/eam_branches/20091201/psphot/src/psphotSignificanceImage.c
===================================================================
--- branches/eam_branches/20091201/psphot/src/psphotSignificanceImage.c	(revision 26648)
+++ branches/eam_branches/20091201/psphot/src/psphotSignificanceImage.c	(revision 26705)
@@ -77,8 +77,6 @@
     // Calculate correction factor for the covariance produced by the (potentially multiple) smoothing
     psKernel *kernel = psImageSmoothKernel(SIGMA_SMTH, NSIGMA_SMTH); // Kernel used for smoothing
-    psKernel *covar = psImageCovarianceCalculate(kernel, readout->covariance); // Covariance matrix
+    float factor = 1.0 / psImageCovarianceCalculateFactor(kernel, readout->covariance);
     psFree(kernel);
-    float factor = 1.0 / psImageCovarianceFactor(covar);
-    psFree(covar);
 
     // record the effective area and significance scaling factor
