summaryrefslogtreecommitdiff
path: root/src/atcmd.c
diff options
context:
space:
mode:
authorAndrii Pientsov <andrii.pientsov@globallogic.com>2020-06-19 12:39:51 +0300
committerAndrii Pientsov <andrii.pientsov@globallogic.com>2020-06-19 12:39:51 +0300
commit7af77e2d3189c8b5a81c292e00062f2fe429461f (patch)
treef2d606a988f076ccc28fabd7cb044cab3122145b /src/atcmd.c
parent10ccba808dab5a17b06456793e83d53501e39dc8 (diff)
downloadsms-utils-7af77e2d3189c8b5a81c292e00062f2fe429461f.tar.gz
sms-utils-7af77e2d3189c8b5a81c292e00062f2fe429461f.tar.bz2
sms-utils-7af77e2d3189c8b5a81c292e00062f2fe429461f.zip
Fix build issue.
Diffstat (limited to 'src/atcmd.c')
-rw-r--r--src/atcmd.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/atcmd.c b/src/atcmd.c
index 76ee98c..449518c 100644
--- a/src/atcmd.c
+++ b/src/atcmd.c
@@ -1479,11 +1479,7 @@ int sms_device_close(int fd)
ret = tty_close(fd);
- if (lock_path) {
- unlink(lock_path);
- free(lock_path);
- lock_path = NULL;
- }
+ lock_file = device_unlock(lock_file);
return ret;
}