fix double free

This commit is contained in:
Ray Lee
2021-08-21 16:59:56 +08:00
parent 365adf0e77
commit fd314882b2

View File

@@ -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;
}