mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-10-23 17:23:23 +00:00
coverity fix: 286678
This commit is contained in:
1 parent
dd5679a53a
commit
2e2bfc17a0
1 file changed
+1
-1
@@ -194,12 +194,12 @@ serial_port uart_open(const char *pcPortName, uint32_t speed) {
|
||||
}
|
||||
|
||||
if (connect(localsocket, (struct sockaddr *) &remote, len) == -1) {
|
||||
free(localsocket);
|
||||
free(sp);
|
||||
return INVALID_SERIAL_PORT;
|
||||
}
|
||||
|
||||
sp->fd = localsocket;
|
||||
|
||||
return sp;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user