fix: mem leaks

This commit is contained in:
iceman1001 2019-03-15 22:05:36 +01:00
commit 48a28fa575
3 changed files with 10 additions and 6 deletions

View file

@ -1865,11 +1865,9 @@ int Cmdhex2bin(const char *Cmd) {
else
continue;
//Uses printf instead of PrintAndLog since the latter
// adds linebreaks to each printout - this way was more convenient since we don't have to
// allocate a string and write to that first...
//Uses printf instead of PrintAndLog since the latter adds linebreaks to each printout
for (int i = 0 ; i < 4 ; ++i)
PrintAndLogEx(NORMAL, "%d", (x >> (3 - i)) & 1);
printf("%d", (x >> (3 - i)) & 1);
}
PrintAndLogEx(NORMAL, "\n");
return 0;