mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
coverity fix 286678 - resource leak
This commit is contained in:
parent
2e2bfc17a0
commit
5e51a72cae
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ serial_port uart_open(const char *pcPortName, uint32_t speed) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (connect(localsocket, (struct sockaddr *) &remote, len) == -1) {
|
if (connect(localsocket, (struct sockaddr *) &remote, len) == -1) {
|
||||||
free(localsocket);
|
close(localsocket);
|
||||||
free(sp);
|
free(sp);
|
||||||
return INVALID_SERIAL_PORT;
|
return INVALID_SERIAL_PORT;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue