From 7af77e2d3189c8b5a81c292e00062f2fe429461f Mon Sep 17 00:00:00 2001 From: Andrii Pientsov Date: Fri, 19 Jun 2020 12:39:51 +0300 Subject: Fix build issue. --- src/atcmd.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/atcmd.c') 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; } -- cgit v1.2.3