fix double free
This commit is contained in:
1 parent
365adf0e77
commit
fd314882b2
1 file changed
+1
@@ -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