mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-09 17:56:53 +08:00
fix: mem leak
This commit is contained in:
parent
7ea7061ed0
commit
439f767b4d
1 changed files with 1 additions and 0 deletions
|
@ -102,6 +102,7 @@ serial_port uart_open(const char* pcPortName) {
|
||||||
printf("Error: getaddrinfo: %s\n", gai_strerror(s));
|
printf("Error: getaddrinfo: %s\n", gai_strerror(s));
|
||||||
freeaddrinfo(addr);
|
freeaddrinfo(addr);
|
||||||
free(addrstr);
|
free(addrstr);
|
||||||
|
free(sp);
|
||||||
return INVALID_SERIAL_PORT;
|
return INVALID_SERIAL_PORT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue