Index: /trunk/psLib/test/image/tst_psImageStats00.c
===================================================================
--- /trunk/psLib/test/image/tst_psImageStats00.c	(revision 2732)
+++ /trunk/psLib/test/image/tst_psImageStats00.c	(revision 2733)
@@ -186,8 +186,9 @@
 
     psFree( tmpMask );
-
-    psMemCheckCorruption( 1 );
+    psFree(myHist);
+    psFree(myHist2);
     psFree( tmpImage );
     psMemCheckCorruption( 1 );
+
     memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false);
     if ( 0 != memLeaks ) {
Index: /trunk/psLib/test/image/verified/tst_psImageStats00.stderr
===================================================================
--- /trunk/psLib/test/image/verified/tst_psImageStats00.stderr	(revision 2732)
+++ /trunk/psLib/test/image/verified/tst_psImageStats00.stderr	(revision 2733)
@@ -8,3 +8,3 @@
     Following should be an error for invalid mask type.
 <DATE><TIME>|<HOST>|E|psImageHistogram (psImageStats.c:<LINENO>)
-    Input psImage mask type, psS8, is not the supported mask datatype of psU8.
+    Unallowable operation: psImage mask has incorrect type.
