mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-11-11 10:14:34 +08:00
cleaner
This commit is contained in:
parent
17b369cc52
commit
dd08c69f7e
1 changed files with 3 additions and 5 deletions
|
@ -161,17 +161,15 @@ serial_port uart_open(const char *pcPortName, uint32_t speed) {
|
|||
close(sfd);
|
||||
}
|
||||
|
||||
freeaddrinfo(addr);
|
||||
free(addrstr);
|
||||
|
||||
if (rp == NULL) { /* No address succeeded */
|
||||
PrintAndLogEx(ERR, "error: Could not connect");
|
||||
freeaddrinfo(addr);
|
||||
free(addrstr);
|
||||
free(sp);
|
||||
return INVALID_SERIAL_PORT;
|
||||
}
|
||||
|
||||
freeaddrinfo(addr);
|
||||
free(addrstr);
|
||||
|
||||
sp->fd = sfd;
|
||||
|
||||
int one = 1;
|
||||
|
|
Loading…
Reference in a new issue