Index: trunk/stac/src/stac.c
===================================================================
--- trunk/stac/src/stac.c	(revision 3375)
+++ trunk/stac/src/stac.c	(revision 3435)
@@ -154,5 +154,9 @@
     psTrace("stac.time",1,"Final combination completed at %f seconds\n", getTime() - startTime);
 
-   // Check memory for leaks, corruption
+#ifdef TESTING
+    // Check memory for leaks, corruption
     stacCheckMemory();
+#endif
+
+    exit(EXIT_SUCCESS);
 }
