Index: /trunk/Ohana/src/opihi/lib.data/page.c
===================================================================
--- /trunk/Ohana/src/opihi/lib.data/page.c	(revision 16458)
+++ /trunk/Ohana/src/opihi/lib.data/page.c	(revision 16459)
@@ -22,4 +22,5 @@
     free (page[0].words);
     free (page[0].value);
+    free (page);
 }
 
Index: /trunk/Ohana/src/opihi/lib.shell/convert_to_RPN.c
===================================================================
--- /trunk/Ohana/src/opihi/lib.shell/convert_to_RPN.c	(revision 16458)
+++ /trunk/Ohana/src/opihi/lib.shell/convert_to_RPN.c	(revision 16459)
@@ -163,6 +163,7 @@
   /*** free up unused stack space ***/
 
-  // XXX there should not be any un-freed op_stacks at this point
-  // clean_stack (op_stack, NSTACK);
+  // If we parsed everything above, there should not be any un-freed op_stacks at this
+  // point.  However, if we had a syntax error, we will have op_stack entries left behind.
+  delete_stack (op_stack, NSTACK);
   free (op_stack);
 
Index: /trunk/Ohana/src/opihi/pcontrol/ResetJob.c
===================================================================
--- /trunk/Ohana/src/opihi/pcontrol/ResetJob.c	(revision 16458)
+++ /trunk/Ohana/src/opihi/pcontrol/ResetJob.c	(revision 16459)
@@ -46,5 +46,6 @@
   }
 
-  gprint (GP_ERR, "programming error in GetJobOutput (should not reach here)\n");
+  gprint (GP_ERR, "programming error in ResetJob (should not reach here)\n");
+  FreeIOBuffer (&buffer);
   pcontrol_exit (1);
   return (FALSE);
Index: /trunk/Ohana/src/opihi/pcontrol/StopHosts.c
===================================================================
--- /trunk/Ohana/src/opihi/pcontrol/StopHosts.c	(revision 16458)
+++ /trunk/Ohana/src/opihi/pcontrol/StopHosts.c	(revision 16459)
@@ -76,4 +76,5 @@
   InitIOBuffer (&buffer, 0x100);
   status = PclientCommand (host, "exit", "Goodbye", &buffer);
+  FreeIOBuffer (&buffer);
 
   /* check on success of pclient command */
