Index: /branches/eam_branches/20090820/psphot/src/psphotDiagnosticPlots.c
===================================================================
--- /branches/eam_branches/20090820/psphot/src/psphotDiagnosticPlots.c	(revision 25169)
+++ /branches/eam_branches/20090820/psphot/src/psphotDiagnosticPlots.c	(revision 25170)
@@ -68,4 +68,5 @@
     if (!psVectorStats (stats, histogram->nums, NULL, NULL, 0)) {
 	psError(PS_ERR_UNKNOWN, false, "failure to measure stats for histogram");
+	psFree(histogram);
         return false;
     }
@@ -108,4 +109,5 @@
     if (!psVectorStats (stats, histogram->nums, NULL, NULL, 0)) {
 	psError(PS_ERR_UNKNOWN, false, "failure to measure stats for histogram");
+	psFree(histogram);
         return false;
     }
