X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/2ae8a312e058f71d0f02be4f2f9cc6f284ebbf34..ca65d3af861fefa3395825cb39ba2ac144d2ff3b:/client/loclass/cipherutils.c?ds=inline

diff --git a/client/loclass/cipherutils.c b/client/loclass/cipherutils.c
index 8c6a278a..83b3c9fa 100644
--- a/client/loclass/cipherutils.c
+++ b/client/loclass/cipherutils.c
@@ -207,13 +207,14 @@ void printarr_human_readable(char * title, uint8_t* arr, int len)
 		cx += snprintf(output+cx,outsize-cx, "%02x ",*(arr+i));
 	}
 	prnlog(output);
+	free(output);
 }
 
 //-----------------------------
 // Code for testing below
 //-----------------------------
 
-
+#ifndef ON_DEVICE
 int testBitStream()
 {
 	uint8_t input [] = {0xDE,0xAD,0xBE,0xEF,0xDE,0xAD,0xBE,0xEF};
@@ -286,3 +287,4 @@ int testCipherUtils(void)
 	retval |= testReversedBitstream();
 	return retval;
 }
+#endif