]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdhfepa.c
Code cleanup:
[proxmark3-svn] / client / cmdhfepa.c
index e9c63f20b02f7f88fae741f4e24780a763bff910..e50ce7082f9c2f973f72fee21e3e5d2b22966c01 100644 (file)
@@ -36,7 +36,7 @@ int CmdHFEPACollectPACENonces(const char *Cmd)
        m = m > 0 ? m : 1;
        n = n > 0 ? n : 1;
 
-       PrintAndLog("Collecting %u %"hhu"-byte nonces", n, m);
+       PrintAndLog("Collecting %u %u-byte nonces", n, m);
        PrintAndLog("Start: %u", time(NULL));
        // repeat n times
        for (unsigned int i = 0; i < n; i++) {
@@ -58,6 +58,7 @@ int CmdHFEPACollectPACENonces(const char *Cmd)
                        }
                        // print nonce
                        PrintAndLog("Length: %d, Nonce: %s", nonce_length, nonce);
+                       free(nonce);
                }
                if (i < n - 1) {
                        sleep(d);
Impressum, Datenschutz