]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/loclass/cipherutils.c
update changelog
[proxmark3-svn] / client / loclass / cipherutils.c
index f9c6227364e17d78c3a9af32cf627964a7133ed3..9a8256bb38a700990fe6bddf4701116cdbaeac40 100644 (file)
@@ -171,6 +171,7 @@ void printarr(char * name, uint8_t* arr, int len)
        }
        cx += snprintf(output+cx,outsize-cx,"};");
        prnlog(output);
        }
        cx += snprintf(output+cx,outsize-cx,"};");
        prnlog(output);
+       free(output);
 }
 
 void printvar(char * name, uint8_t* arr, int len)
 }
 
 void printvar(char * name, uint8_t* arr, int len)
@@ -188,6 +189,7 @@ void printvar(char * name, uint8_t* arr, int len)
        }
 
        prnlog(output);
        }
 
        prnlog(output);
+       free(output);
 }
 
 void printarr_human_readable(char * title, uint8_t* arr, int len)
 }
 
 void printarr_human_readable(char * title, uint8_t* arr, int len)
@@ -214,7 +216,7 @@ void printarr_human_readable(char * title, uint8_t* arr, int len)
 // Code for testing below
 //-----------------------------
 
 // Code for testing below
 //-----------------------------
 
-
+#ifndef ON_DEVICE
 int testBitStream()
 {
        uint8_t input [] = {0xDE,0xAD,0xBE,0xEF,0xDE,0xAD,0xBE,0xEF};
 int testBitStream()
 {
        uint8_t input [] = {0xDE,0xAD,0xBE,0xEF,0xDE,0xAD,0xBE,0xEF};
@@ -287,3 +289,4 @@ int testCipherUtils(void)
        retval |= testReversedBitstream();
        return retval;
 }
        retval |= testReversedBitstream();
        return retval;
 }
+#endif
Impressum, Datenschutz