Index: /tags/ipp-20101215/ppImage/src/ppImageAddNoise.c
===================================================================
--- /tags/ipp-20101215/ppImage/src/ppImageAddNoise.c	(revision 30641)
+++ /tags/ipp-20101215/ppImage/src/ppImageAddNoise.c	(revision 30642)
@@ -77,4 +77,6 @@
   double add_sigma = sqrt((MSKY_MN/GAIN)*(rho - 1.0) + PS_SQR(RDNOISE)*(rho2 - 1.0));
 
+  fprintf (stderr, "mean sky: %f, scaling by %f, adding %f before re-scaling\n", MSKY_MN, rho, add_sigma);
+
   for (int iy = 0; iy < image->numRows; iy++){
     for (int ix = 0; ix < image->numCols; ix++){
@@ -91,4 +93,5 @@
   ppImageRandomGaussianFree();
   psFree(rng);
+  psFree(stats);
   
   return true;
