mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
fix: mem leaks
This commit is contained in:
parent
f0d5b79abb
commit
48a28fa575
3 changed files with 10 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue