cleaner
This commit is contained in:
1 parent
17b369cc52
commit
dd08c69f7e
1 file changed
+3
-5
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user