Index: /branches/eam_branches/ohana.20150429/src/libohana/include/ohana_allocate.h
===================================================================
--- /branches/eam_branches/ohana.20150429/src/libohana/include/ohana_allocate.h	(revision 38408)
+++ /branches/eam_branches/ohana.20150429/src/libohana/include/ohana_allocate.h	(revision 38409)
@@ -26,5 +26,5 @@
 void  ohana_free (const char *file, int line, const char *func, void *in);
 void  ohana_memdump_func (int mode);
-void  ohana_memcheck_func (int mode);
+int   ohana_memcheck_func (int mode);
 void  real_free (void *in);
 
@@ -56,5 +56,5 @@
 # else  /* below: not OHANA_MEMORY */
 
-# define ohana_memcheck(X) /* NOP */
+# define ohana_memcheck(X) TRUE
 # define ohana_memdump(X) /* NOP */
 void  real_free (void *in);
Index: /branches/eam_branches/ohana.20150429/src/libohana/src/ohana_allocate.c
===================================================================
--- /branches/eam_branches/ohana.20150429/src/libohana/src/ohana_allocate.c	(revision 38408)
+++ /branches/eam_branches/ohana.20150429/src/libohana/src/ohana_allocate.c	(revision 38409)
@@ -207,9 +207,9 @@
 }
 
-void ohana_memcheck_func (int allmemory) {
+int ohana_memcheck_func (int allmemory) {
 
   if (!lastBlock) {
     fprintf (stderr, "no memory allocated\n");
-    return;
+    return TRUE;
   }
 
@@ -253,5 +253,6 @@
   fprintf (stderr, "%zd memory blocks allocated (%zd bytes total), %zd good, %zd bad\n", Ntotal, Nbytes, Ngood, Nbad);
 
-  return;
+  if (Nbad) return FALSE;
+  return TRUE;
 }
 
