mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
Free in case of write error
This commit is contained in:
parent
4bf3cb928b
commit
f6ae161fd5
1 changed files with 2 additions and 1 deletions
|
@ -1923,7 +1923,8 @@ static int CmdHF14BRestore(const char *Cmd) {
|
|||
|
||||
int status = write_sr_block(blockno, 4, data+blockno*4);
|
||||
if (status != PM3_SUCCESS) {
|
||||
PrintAndLogEx(FAILED, "Write failed shutting down");
|
||||
PrintAndLogEx(FAILED, "Write failed");
|
||||
free(data);
|
||||
return status;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue