mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-12 11:18:11 -07:00
Free in case of write error
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user