mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-10-23 04:22:51 +00:00
cmdtrace.c: fix segfault when trying to list trace after loading fails
This commit is contained in:
1 parent
3d984559a1
commit
7ef5fe14bb
1 file changed
+2
-1
@@ -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