]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/hitagS.c
FIX: Some Coverity Scan warnings. fread, not initialised etc etc
[proxmark3-svn] / armsrc / hitagS.c
index 1b247d19bdee3a6f92f065da22642e68b9f2f064..d760a400c8841fe5149275fcf87c6bc95958a3bf 100644 (file)
@@ -10,8 +10,6 @@
 //-----------------------------------------------------------------------------
 // Some code was copied from Hitag2.c
 //-----------------------------------------------------------------------------
-
-
 #include <stdio.h>
 #include <stdlib.h>
 #include "proxmark3.h"
@@ -949,14 +947,15 @@ void SimulateHitagSTag(bool tag_mem_supplied, byte_t* data) {
        int i, j;
        byte_t rx[HITAG_FRAME_LEN];
        size_t rxlen = 0;
-//bool bQuitTraceFull = false;
+       //bool bQuitTraceFull = false;
        bQuiet = false;
        byte_t txbuf[HITAG_FRAME_LEN];
        byte_t* tx = txbuf;
        size_t txlen = 0;
-       BigBuf_free();
+       // free eventually allocated BigBuf memory
+       BigBuf_free(); BigBuf_Clear_ext(false);
 
-// Clean up trace and prepare it for storing frames
+       // Clean up trace and prepare it for storing frames
        set_tracing(TRUE);
        clear_trace();
 
Impressum, Datenschutz