From aaac99fdee55a49f79e3b90e99146783fb501b0c Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sun, 24 Feb 2019 19:46:09 +0100 Subject: [PATCH] fix: 'hf mf csave' unused code --- client/cmdhfmf.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/cmdhfmf.c b/client/cmdhfmf.c index f04105c01..c59dad769 100644 --- a/client/cmdhfmf.c +++ b/client/cmdhfmf.c @@ -2749,8 +2749,11 @@ int CmdHF14AMfCLoad(const char *Cmd) { } } - if ( res ) + if ( res ) { + if ( data ) + free(data); return 1; + } // PrintAndLogEx(INFO, "DATA | %s", sprint_hex(data+1000, 24) ); @@ -2922,7 +2925,6 @@ int CmdHF14AMfCSave(const char *Cmd) { errors = true; break; } - if (len > FILE_PATH_SIZE - 5) len = FILE_PATH_SIZE - 5; useuid = false; hasname = true;