From: handa Date: Wed, 13 Sep 2006 11:50:01 +0000 (+0000) Subject: (mdatabase__unlock): Be sure to unlink uniq file. X-Git-Tag: REL-1-3-4~71 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca360d4cdcbca4222ddfcd6cf8b247a9b2dda969;p=m17n%2Fm17n-lib.git (mdatabase__unlock): Be sure to unlink uniq file. --- diff --git a/src/database.c b/src/database.c index e8568e4..68f788c 100644 --- a/src/database.c +++ b/src/database.c @@ -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; }