Index: trunk/Ohana/src/opihi/cmd.basic/output.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.basic/output.c	(revision 9039)
+++ trunk/Ohana/src/opihi/cmd.basic/output.c	(revision 15791)
@@ -31,4 +31,5 @@
   if ((N = get_argument (argc, argv, "-dump"))) {
     buffer = gprintGetBuffer (dest);
+    if (buffer == NULL) return (FALSE);
 
     /* save the current buffer contents */
@@ -39,9 +40,10 @@
     /* set the output target to the specified name */
     remove_argument (N, &argc, argv);
-    gprintSetFile (dest, argv[N]);
+    gprintSetFileAllThreads (dest, argv[N]);
     remove_argument (N, &argc, argv);
 
     /* send the output to the appropriate destination */
     gwrite (output, 1, Noutput, dest);
+    free (output);
     return (TRUE);
   }
@@ -52,5 +54,5 @@
   }
 
-  gprintSetFile (dest, argv[1]);
+  gprintSetFileAllThreads (dest, argv[1]);
   return (TRUE);
 }
