mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-10-23 08:43:07 +00:00
fix: mem leak
This commit is contained in:
1 parent
8e01c9899f
commit
8512c0ea09
1 file changed
+1
@@ -83,6 +83,7 @@ serial_port uart_open(const char* pcPortName) {
|
||||
|
||||
if (addrstr == NULL) {
|
||||
printf("Error: strdup\n");
|
||||
free(sp);
|
||||
return INVALID_SERIAL_PORT;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user