From 015e02a9bf9f943babe305dd6d8a3885ef25efb9 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 25 Jun 2021 22:13:41 +0200 Subject: [PATCH] free start pointer --- CHANGELOG.md | 2 ++ client/src/cmdlfem4x50.c | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f7cd6d8d4..f52221119 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,8 @@ All notable changes to this project will be documented in this file. This project uses the changelog in accordance with [keepchangelog](http://keepachangelog.com/). Please use this to write notable changes, which is not the same as git commit log... ## [unreleased][unreleased] + +## [midsummer][2021-06-25] - Added bruteforce function for the magic byte in `cmdlfnexwatch.c` and ability to clone with psk2 modulation (@Guilhem7, @MaximeBosca) - Changed `hw setmux` - improve user feedback for special case (@iceman1001) - Changed 'filename' - unified file name param across client (@iceman1001) diff --git a/client/src/cmdlfem4x50.c b/client/src/cmdlfem4x50.c index 0861365a9..a67ffbc7e 100644 --- a/client/src/cmdlfem4x50.c +++ b/client/src/cmdlfem4x50.c @@ -471,6 +471,8 @@ int CmdEM4x50Chk(const char *Cmd) { return res; } + uint8_t *pkeys = keys; + uint64_t t1 = msclock(); PrintAndLogEx(INFO, "You can cancel this operation by pressing the pm3 button"); @@ -505,7 +507,7 @@ int CmdEM4x50Chk(const char *Cmd) { keys += n; } - free(keys); + free(pkeys); PrintAndLogEx(NORMAL, ""); if (status == PM3_SUCCESS) {