More coverity fixes
This commit is contained in:
1 parent
0ce5620254
commit
ca4714cd23
6 files changed
+20
-7
No files matched your search
@@ -73,6 +73,7 @@ serial_port uart_open(const char* pcPortName)
|
||||
// Does the system allows us to place a lock on this file descriptor
|
||||
if (fcntl(sp->fd, F_SETLK, &fl) == -1) {
|
||||
// A conflicting lock is held by another process
|
||||
free(sp);
|
||||
return CLAIMED_SERIAL_PORT;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user