diff options
Diffstat (limited to 'src/atcmd.c')
-rw-r--r-- | src/atcmd.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/atcmd.c b/src/atcmd.c index 1aa415c..76ee98c 100644 --- a/src/atcmd.c +++ b/src/atcmd.c @@ -1479,7 +1479,11 @@ int sms_device_close(int fd) ret = tty_close(fd); - lock_file = device_unlock(lock_file); + if (lock_path) { + unlink(lock_path); + free(lock_path); + lock_path = NULL; + } return ret; } @@ -1566,4 +1570,4 @@ int is_quectel_model() } return 0; -} +}
\ No newline at end of file |