mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-18 22:20:45 +08:00
fix: mem leak
This commit is contained in:
parent
8e01c9899f
commit
8512c0ea09
1 changed files with 1 additions and 0 deletions
|
@ -83,6 +83,7 @@ serial_port uart_open(const char* pcPortName) {
|
|||
|
||||
if (addrstr == NULL) {
|
||||
printf("Error: strdup\n");
|
||||
free(sp);
|
||||
return INVALID_SERIAL_PORT;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue