Merge pull request #1469 from AxisRay/fix-double-free

Fix double free error #1467
This commit is contained in:
Philippe Teuwen authored and GitHub committed 2021-08-21 13:51:45 +02:00
commit 4087b5a288
1 file changed
+1
+1
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;
}