Index: trunk/pstamp/src/pstampfinish.c
===================================================================
--- trunk/pstamp/src/pstampfinish.c	(revision 17456)
+++ trunk/pstamp/src/pstampfinish.c	(revision 18243)
@@ -118,5 +118,5 @@
     // XXX: need to select the database name based on the project name specified in the input
 
-    options->config->database = pmConfigDB(options->config);
+    options->config->database = psMemIncrRefCounter(pmConfigDB(options->config));
 
     if (!options->config->database) {
@@ -216,5 +216,5 @@
             if (pJob->result == 0) {
                 ++numStamps;
-                // XXX: should we check for existence?
+                // XXX: should we check for existence of the files?
                 psString stampName = getBaseName(pJob->outputBase, true);
                 psString inputName = getBaseName(pJob->uri, false);
