summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaksym Telychko <maksym.telychko@globallogic.com>2020-03-30 14:38:28 +0300
committerMaksym Telychko <maksym.telychko@globallogic.com>2020-03-30 14:38:28 +0300
commit7568024baa8e6a2488e307e38ade8e7b6a46720f (patch)
treef9e9bb75c4783c4df28c1c48154bf35442b8af19
parentf4b78a288c9e5c2a7a05d71b9bbe9e5fc26f2a63 (diff)
downloadsms-utils-7568024baa8e6a2488e307e38ade8e7b6a46720f.tar.gz
sms-utils-7568024baa8e6a2488e307e38ade8e7b6a46720f.tar.bz2
sms-utils-7568024baa8e6a2488e307e38ade8e7b6a46720f.zip
MTX-3262 mpower lockfile: do not unlink lock file
-rw-r--r--src/utils.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c
index 7da0186..c48686b 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -288,7 +288,6 @@ struct Lock *device_unlock(struct Lock *lock)
{
if (lock) {
close(lock->fd);
- unlink(lock->path);
free(lock->path);
free(lock);
}