Index: /branches/eam_branches/ipp-20140904/Ohana/src/libohana/src/glockfile.c
===================================================================
--- /branches/eam_branches/ipp-20140904/Ohana/src/libohana/src/glockfile.c	(revision 37546)
+++ /branches/eam_branches/ipp-20140904/Ohana/src/libohana/src/glockfile.c	(revision 37547)
@@ -288,5 +288,9 @@
 
     /* set value to IDLE */
-    fseeko (flock, 0LL, SEEK_SET);
+    if (fseeko (flock, 0LL, SEEK_SET)) {
+      *state = LCK_HARDCLOSE;
+      goto failure;
+    }
+
     nbytes = fprintf (flock, "IDLE\n");
     if (nbytes != 5) {
@@ -303,5 +307,8 @@
   
   /* now unlock the file */
-  fclose (f);
+  if (fclose (f)) {
+    *state = LCK_UNKNOWN;
+    goto failure;
+  }
 
   *state = LCK_UNLOCK;
Index: /branches/eam_branches/ipp-20140904/Ohana/src/libohana/src/ohana_allocate.c
===================================================================
--- /branches/eam_branches/ipp-20140904/Ohana/src/libohana/src/ohana_allocate.c	(revision 37546)
+++ /branches/eam_branches/ipp-20140904/Ohana/src/libohana/src/ohana_allocate.c	(revision 37547)
@@ -177,4 +177,6 @@
 
   if (!in) return;
+
+  // fprintf (stderr, "free %zx\n", (size_t) in);
 
   ref = (Memblock *) in - 1;
