mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-12-29 11:52:59 +08:00
FIX: Moved a free() call.
This commit is contained in:
parent
4c0cf2d215
commit
109def22c8
1 changed files with 3 additions and 2 deletions
|
@ -166,7 +166,6 @@ static void *main_loop(void *targ) {
|
||||||
if (ret == 99)
|
if (ret == 99)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
free(cmd);
|
|
||||||
} else {
|
} else {
|
||||||
printf("\n");
|
printf("\n");
|
||||||
break;
|
break;
|
||||||
|
@ -174,7 +173,9 @@ static void *main_loop(void *targ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
write_history(".history");
|
write_history(".history");
|
||||||
|
|
||||||
|
free(cmd);
|
||||||
|
|
||||||
if (arg->usb_present == 1) {
|
if (arg->usb_present == 1) {
|
||||||
rarg.run = 0;
|
rarg.run = 0;
|
||||||
pthread_join(reader_thread, NULL);
|
pthread_join(reader_thread, NULL);
|
||||||
|
|
Loading…
Reference in a new issue