mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-22 06:13:51 -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);
|
int status = write_sr_block(blockno, 4, data+blockno*4);
|
||||||
if (status != PM3_SUCCESS) {
|
if (status != PM3_SUCCESS) {
|
||||||
PrintAndLogEx(FAILED, "Write failed shutting down");
|
PrintAndLogEx(FAILED, "Write failed");
|
||||||
|
free(data);
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue