summaryrefslogtreecommitdiff
path: root/src/basic/lockfile-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/basic/lockfile-util.c')
-rw-r--r--src/basic/lockfile-util.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/basic/lockfile-util.c b/src/basic/lockfile-util.c
index 05e16d1caa..f3ec6a3e52 100644
--- a/src/basic/lockfile-util.c
+++ b/src/basic/lockfile-util.c
@@ -145,8 +145,7 @@ void release_lock_file(LockFile *f) {
if ((f->operation & ~LOCK_NB) == LOCK_EX)
unlink_noerrno(f->path);
- free(f->path);
- f->path = NULL;
+ f->path = mfree(f->path);
}
f->fd = safe_close(f->fd);