Index: trunk/Ohana/src/opihi/cmd.data/densify.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/densify.c	(revision 39227)
+++ trunk/Ohana/src/opihi/cmd.data/densify.c	(revision 39233)
@@ -96,5 +96,5 @@
   gfits_free_matrix (&bf[0].matrix);
   gfits_free_header (&bf[0].header);
-  CreateBuffer (bf, Nx, Ny, -32, 0.0, 1.0);
+  if (!CreateBuffer (bf, Nx, Ny, -32, 0.0, 1.0)) return FALSE;
   strcpy (bf[0].file, "(empty)");
   
Index: trunk/Ohana/src/opihi/cmd.data/fft2d.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/fft2d.c	(revision 39227)
+++ trunk/Ohana/src/opihi/cmd.data/fft2d.c	(revision 39233)
@@ -58,6 +58,6 @@
   
   /* fix up output headers (real) & allocate data buffer */
-  CreateBuffer (Ore, Nx, Ny, -32, 0.0, 1.0);
-  CreateBuffer (Oim, Nx, Ny, -32, 0.0, 1.0);
+  if (!CreateBuffer (Ore, Nx, Ny, -32, 0.0, 1.0)) return FALSE;
+  if (!CreateBuffer (Oim, Nx, Ny, -32, 0.0, 1.0)) return FALSE;
 
   gfits_copy_header (&Ire[0].header, &Ore[0].header);
Index: trunk/Ohana/src/opihi/cmd.data/gridify.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/gridify.c	(revision 39227)
+++ trunk/Ohana/src/opihi/cmd.data/gridify.c	(revision 39233)
@@ -85,5 +85,5 @@
     gfits_free_matrix (&bf[0].matrix);
     gfits_free_header (&bf[0].header);
-    CreateBuffer (bf, Nx, Ny, -32, 0.0, 1.0);
+    if (!CreateBuffer (bf, Nx, Ny, -32, 0.0, 1.0)) return FALSE;
     strcpy (bf[0].file, "(empty)");
   }
@@ -111,5 +111,5 @@
     gfits_free_matrix (&ct[0].matrix);
     gfits_free_header (&ct[0].header);
-    CreateBuffer (ct, Nx, Ny, -32, 0.0, 1.0);
+    if (!CreateBuffer (ct, Nx, Ny, -32, 0.0, 1.0)) return FALSE;
     strcpy (ct[0].file, "(empty)");
 
Index: trunk/Ohana/src/opihi/cmd.data/mcreate.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/mcreate.c	(revision 39227)
+++ trunk/Ohana/src/opihi/cmd.data/mcreate.c	(revision 39233)
@@ -27,7 +27,7 @@
 
   if (Nz) {
-    CreateBuffer3D (buf, Nx, Ny, Nz, -32, 1.0, 0.0);
+    if (!CreateBuffer3D (buf, Nx, Ny, Nz, -32, 1.0, 0.0)) return FALSE;
   } else {
-    CreateBuffer (buf, Nx, Ny, -32, 1.0, 0.0);
+    if (!CreateBuffer (buf, Nx, Ny, -32, 1.0, 0.0)) return FALSE;
   }
   return (TRUE);
Index: trunk/Ohana/src/opihi/cmd.data/medimage_commands.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/medimage_commands.c	(revision 39227)
+++ trunk/Ohana/src/opihi/cmd.data/medimage_commands.c	(revision 39233)
@@ -82,5 +82,5 @@
   gfits_free_matrix (&output->matrix);
   gfits_free_header (&output->header);
-  CreateBuffer (output, Nx, Ny, -32, 0.0, 1.0);
+  if (!CreateBuffer (output, Nx, Ny, -32, 0.0, 1.0)) return FALSE;
 
   float *outvalue = (float *) output->matrix.buffer;
Index: trunk/Ohana/src/opihi/cmd.data/mslice.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/mslice.c	(revision 39227)
+++ trunk/Ohana/src/opihi/cmd.data/mslice.c	(revision 39233)
@@ -35,5 +35,5 @@
   gfits_free_matrix (&out[0].matrix);
   gfits_free_header (&out[0].header);
-  CreateBuffer (out, Nx, Ny, -32, 1.0, 0.0);
+  if (!CreateBuffer (out, Nx, Ny, -32, 1.0, 0.0)) return FALSE;
 
   float *inF  = (float *) in[0].matrix.buffer + plane*Nx*Ny;
Index: trunk/Ohana/src/opihi/cmd.data/shift.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/shift.c	(revision 39227)
+++ trunk/Ohana/src/opihi/cmd.data/shift.c	(revision 39233)
@@ -48,5 +48,5 @@
   gfits_free_matrix (&out[0].matrix);
   gfits_free_header (&out[0].header);
-  CreateBuffer (out, nx, ny, -32, 0.0, 1.0);
+  if (!CreateBuffer (out, nx, ny, -32, 0.0, 1.0)) return FALSE;
 
   DXin = (dx < 0) ? -dx : 0;
Index: trunk/Ohana/src/opihi/cmd.data/squash3d.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/squash3d.c	(revision 39227)
+++ trunk/Ohana/src/opihi/cmd.data/squash3d.c	(revision 39233)
@@ -46,5 +46,5 @@
 	int oNx = iNz;
 	int oNy = iNy;
-	CreateBuffer (tgt, oNx, oNy, -32, 0.0, 1.0);
+	if (!CreateBuffer (tgt, oNx, oNy, -32, 0.0, 1.0)) return FALSE;
 	float *oBuf  = (float *) tgt[0].matrix.buffer;
 
@@ -70,5 +70,5 @@
 	int oNx = iNx;
 	int oNy = iNz;
-	CreateBuffer (tgt, oNx, oNy, -32, 0.0, 1.0);
+	if (!CreateBuffer (tgt, oNx, oNy, -32, 0.0, 1.0)) return FALSE;
 	float *oBuf  = (float *) tgt[0].matrix.buffer;
 
@@ -94,5 +94,5 @@
 	int oNx = iNx;
 	int oNy = iNy;
-	CreateBuffer (tgt, oNx, oNy, -32, 0.0, 1.0);
+	if (!CreateBuffer (tgt, oNx, oNy, -32, 0.0, 1.0)) return FALSE;
 	float *oBuf  = (float *) tgt[0].matrix.buffer;
 
Index: trunk/Ohana/src/opihi/cmd.data/tdhistogram.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/tdhistogram.c	(revision 39227)
+++ trunk/Ohana/src/opihi/cmd.data/tdhistogram.c	(revision 39233)
@@ -140,5 +140,5 @@
     gfits_free_matrix (&bf[0].matrix);
     gfits_free_header (&bf[0].header);
-    CreateBuffer3D (bf, Nx, Ny, Nz, -32, 0.0, 1.0);
+    if (!CreateBuffer3D (bf, Nx, Ny, Nz, -32, 0.0, 1.0)) return FALSE;
     strcpy (bf[0].file, "(empty)");
 
Index: trunk/Ohana/src/opihi/cmd.data/vgrid.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/vgrid.c	(revision 39227)
+++ trunk/Ohana/src/opihi/cmd.data/vgrid.c	(revision 39233)
@@ -43,5 +43,5 @@
   gfits_free_matrix (&bf[0].matrix);
   gfits_free_header (&bf[0].header);
-  CreateBuffer (bf, Nx, Ny, -32, 0.0, 1.0);
+  if (!CreateBuffer (bf, Nx, Ny, -32, 0.0, 1.0)) return FALSE;
   strcpy (bf[0].file, "(empty)");
 
