(mdatabase__unlock): Be sure to unlink uniq file.
authorhanda <handa>
Wed, 13 Sep 2006 11:50:01 +0000 (11:50 +0000)
committerhanda <handa>
Wed, 13 Sep 2006 11:50:01 +0000 (11:50 +0000)
src/database.c

index e8568e4..68f788c 100644 (file)
@@ -1103,7 +1103,10 @@ mdatabase__unlock (MDatabase *mdb)
   free (db_info->lock_file);
   db_info->lock_file = NULL;
   if (db_info->uniq_file)
-    free (db_info->uniq_file);
+    {
+      unlink (db_info->uniq_file);
+      free (db_info->uniq_file);
+    }
   return 0;
 }