diff options
Diffstat (limited to 'lockfile.c')
-rw-r--r-- | lockfile.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lockfile.c b/lockfile.c index e55149a73a..3df1e8306a 100644 --- a/lockfile.c +++ b/lockfile.c @@ -279,8 +279,7 @@ void rollback_lock_file(struct lock_file *lk) if (!lk->filename[0]) return; - if (lk->fd >= 0) - close(lk->fd); + close_lock_file(lk); unlink_or_warn(lk->filename); lk->filename[0] = 0; } |