X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/6ff6ade2f5f24ffb52a9f90238ee7b8c77edc89c..5a08545794cefc9fd9450707e739784c8c84839e:/client/loclass/cipherutils.c?ds=sidebyside diff --git a/client/loclass/cipherutils.c b/client/loclass/cipherutils.c index f9c62273..9a8256bb 100644 --- a/client/loclass/cipherutils.c +++ b/client/loclass/cipherutils.c @@ -171,6 +171,7 @@ void printarr(char * name, uint8_t* arr, int len) } cx += snprintf(output+cx,outsize-cx,"};"); prnlog(output); + free(output); } void printvar(char * name, uint8_t* arr, int len) @@ -188,6 +189,7 @@ void printvar(char * name, uint8_t* arr, int len) } prnlog(output); + free(output); } 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 //----------------------------- - +#ifndef ON_DEVICE int testBitStream() { uint8_t input [] = {0xDE,0xAD,0xBE,0xEF,0xDE,0xAD,0xBE,0xEF}; @@ -287,3 +289,4 @@ int testCipherUtils(void) retval |= testReversedBitstream(); return retval; } +#endif