Commit 54dd3000 authored by Dong Anyuan's avatar Dong Anyuan

Fix Coverity Scan CID 60371 (Handle variable fd going out of scope leaks the handle.)

parent e99f87b1
......@@ -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);
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment