        Dmsg1(dbglvl, "accurate %s (not found)\n", fname);
        stat = true;
        goto bail_out;
-@@ -343,7 +430,7 @@
+@@ -343,7 +445,7 @@
       stat = true;
     }
  

+   if (db) {
+      db->close(db, DB_NOSYNC);
+      db = NULL;
+   }
+   if (hash_name) {
+      unlink(hash_name);        /* remove the hash on disk */

       }
    }
 
@@ -398,17 +500,3 @@
 
    return true;
 }
