mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-09 03:00:07 -04:00
cmdtrace.c: fix segfault when trying to list trace after loading fails
This commit is contained in:
@@ -1094,8 +1094,9 @@ static int CmdTraceLoad(const char *Cmd) {
|
||||
CLIParserFree(ctx);
|
||||
|
||||
if (gs_trace) {
|
||||
free(gs_trace);
|
||||
free(gs_trace); // maybe better to not clobber this until we have successful load?
|
||||
gs_trace = NULL;
|
||||
gs_traceLen = 0;
|
||||
}
|
||||
|
||||
size_t len = 0;
|
||||
|
||||
Reference in New Issue
Block a user