summaryrefslogtreecommitdiff
path: root/src/atcmd.c
diff options
context:
space:
mode:
authorJeff Hatch <jhatch@multitech.com>2020-06-23 08:16:31 -0500
committerJeff Hatch <jhatch@multitech.com>2020-06-23 08:16:31 -0500
commitc7a9553edb425f8ab6c83098e8a872b79629e7f9 (patch)
treef2d606a988f076ccc28fabd7cb044cab3122145b /src/atcmd.c
parent10ccba808dab5a17b06456793e83d53501e39dc8 (diff)
parent7af77e2d3189c8b5a81c292e00062f2fe429461f (diff)
downloadsms-utils-c7a9553edb425f8ab6c83098e8a872b79629e7f9.tar.gz
sms-utils-c7a9553edb425f8ab6c83098e8a872b79629e7f9.tar.bz2
sms-utils-c7a9553edb425f8ab6c83098e8a872b79629e7f9.zip
Merge branch 'fix-build-issue' into 'master'
Fix build issue. See merge request !9
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;
}