mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
mem leak
This commit is contained in:
parent
af8e81d0a0
commit
580159ed97
1 changed files with 2 additions and 2 deletions
|
@ -614,8 +614,7 @@ int CmdLegicRfWrite(const char *Cmd) {
|
||||||
PrintAndLogEx(NORMAL, "############# DANGER ################");
|
PrintAndLogEx(NORMAL, "############# DANGER ################");
|
||||||
PrintAndLogEx(NORMAL, "# changing the DCF is irreversible #");
|
PrintAndLogEx(NORMAL, "# changing the DCF is irreversible #");
|
||||||
PrintAndLogEx(NORMAL, "#####################################");
|
PrintAndLogEx(NORMAL, "#####################################");
|
||||||
char *answer = NULL;
|
char *answer = readline("do you really want to continue? y(es) n(o) : ");
|
||||||
answer = readline("do you really want to continue? y(es) n(o) : ");
|
|
||||||
bool overwrite = (answer[0] == 'y' || answer[0] == 'Y');
|
bool overwrite = (answer[0] == 'y' || answer[0] == 'Y');
|
||||||
if (!overwrite) {
|
if (!overwrite) {
|
||||||
PrintAndLogEx(NORMAL, "command cancelled");
|
PrintAndLogEx(NORMAL, "command cancelled");
|
||||||
|
@ -1283,6 +1282,7 @@ int CmdLegicWipe(const char *Cmd) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
PrintAndLogEx(SUCCESS, "ok\n");
|
PrintAndLogEx(SUCCESS, "ok\n");
|
||||||
|
free(data);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue