mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-09 03:00:07 -04:00
fix double free
This commit is contained in:
@@ -521,6 +521,7 @@ static int download_trace(void) {
|
||||
if (!GetFromDevice(BIG_BUF, g_trace, PM3_CMD_DATA_SIZE, 0, NULL, 0, &response, 4000, true)) {
|
||||
PrintAndLogEx(WARNING, "timeout while waiting for reply.");
|
||||
free(g_trace);
|
||||
g_trace = NULL;
|
||||
return PM3_ETIMEOUT;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user