]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - client/nonce2key/crapto1.c
prepare to update the LF T55XX commands
[proxmark3-svn] / client / nonce2key / crapto1.c
index 90f55ab4c6cce6ad91ad594059069a7e64a0a270..ca926a7382a8d3e77b1d5078e65154452dce7bfa 100644 (file)
@@ -544,7 +544,12 @@ lfsr_common_prefix(uint32_t pfx, uint32_t rr, uint8_t ks[8], uint8_t par[8][8],
 \r
        statelist = malloc((sizeof *statelist) << 21);  //how large should be? \r
        if(!statelist || !odd || !even)\r
-                return 0;\r
+       {\r
+                               free(statelist);\r
+                               free(odd);\r
+                               free(even);\r
+          return 0;\r
+       }\r
 \r
        s = statelist;\r
        for(o = odd; *o != -1; ++o)\r
Impressum, Datenschutz