X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/d3a22c7dfa87bf5e21d228849a602194be4a0895..90639dd1cc7d812f21dd20710916de9478ebefe4:/client/loclass/cipherutils.c?ds=inline
diff --git a/client/loclass/cipherutils.c b/client/loclass/cipherutils.c
index f82a11ce..9a8256bb 100644
--- a/client/loclass/cipherutils.c
+++ b/client/loclass/cipherutils.c
@@ -30,7 +30,10 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with IClassCipher. If not, see .
+ * along with loclass. If not, see .
+ *
+ *
+ *
****************************************************************************/
#include
@@ -168,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)
@@ -185,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)
@@ -211,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};
@@ -284,3 +289,4 @@ int testCipherUtils(void)
retval |= testReversedBitstream();
return retval;
}
+#endif