Index: gw/sqlbox.c
===================================================================
--- gw/sqlbox.c	(revision 46)
+++ gw/sqlbox.c	(working copy)
@@ -599,6 +599,7 @@
         else {
             gwthread_sleep(SLEEP_BETWEEN_SELECTS);
         }
+        msg_destroy(msg);
     }
 
     boxc_destroy(boxc);
