diff --git a/openair3/NAS/COMMON/UTIL/device.c b/openair3/NAS/COMMON/UTIL/device.c index f8f1b9727b..41085f0e24 100644 --- a/openair3/NAS/COMMON/UTIL/device.c +++ b/openair3/NAS/COMMON/UTIL/device.c @@ -125,6 +125,7 @@ void* device_open(int type, const char* devpath, const char* params) if (stty_set(fd, params) != RETURNok) { device_close(devid); devid = NULL; + close(fd); } } }