mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
chg: need to free some
This commit is contained in:
parent
e727fe5818
commit
80a91eba11
5 changed files with 35 additions and 39 deletions
|
@ -625,7 +625,6 @@ int CmdLFfskSim(const char *Cmd) {
|
|||
|
||||
clearCommandBuffer();
|
||||
SendCommandNG(CMD_FSK_SIM_TAG, (uint8_t *)payload, sizeof(lf_fsksim_t) + size);
|
||||
|
||||
free(payload);
|
||||
|
||||
setClockGrid(clk, 0);
|
||||
|
@ -717,7 +716,6 @@ int CmdLFaskSim(const char *Cmd) {
|
|||
size = PM3_CMD_DATA_SIZE - sizeof(lf_asksim_t);
|
||||
}
|
||||
|
||||
|
||||
lf_asksim_t *payload = calloc(1, sizeof(lf_asksim_t) + size);
|
||||
payload->encoding = encoding;
|
||||
payload->invert = invert;
|
||||
|
@ -838,10 +836,13 @@ int CmdLFpskSim(const char *Cmd) {
|
|||
size = PM3_CMD_DATA_SIZE;
|
||||
}
|
||||
PrintAndLogEx(DEBUG, "DEBUG: Sending DemodBuffer Length: %d", size);
|
||||
|
||||
clearCommandBuffer();
|
||||
SendCommandOLD(CMD_PSK_SIM_TAG, clk << 8 | carrier, invert, size, DemodBuffer, size);
|
||||
PacketResponseNG resp;
|
||||
WaitForResponse(CMD_PSK_SIM_TAG, &resp);
|
||||
|
||||
PrintAndLogEx(INFO, "Done");
|
||||
if (resp.status != PM3_EOPABORTED)
|
||||
return resp.status;
|
||||
return PM3_SUCCESS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue