mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-19 05:33:17 +08:00
FIX: this free call still annoys Coverity Scan.
This commit is contained in:
parent
0516439959
commit
95215e873f
1 changed files with 5 additions and 1 deletions
|
@ -154,6 +154,8 @@ static void *main_loop(void *targ) {
|
||||||
cmd = readline(PROXPROMPT);
|
cmd = readline(PROXPROMPT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// this one should pick up all non-null cmd...
|
||||||
|
// why is there a
|
||||||
if (cmd) {
|
if (cmd) {
|
||||||
|
|
||||||
while(cmd[strlen(cmd) - 1] == ' ')
|
while(cmd[strlen(cmd) - 1] == ' ')
|
||||||
|
@ -166,8 +168,9 @@ static void *main_loop(void *targ) {
|
||||||
// exit or quit
|
// exit or quit
|
||||||
if (ret == 99)
|
if (ret == 99)
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
free(cmd);
|
free(cmd);
|
||||||
|
cmd = 0;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
printf("\n");
|
printf("\n");
|
||||||
break;
|
break;
|
||||||
|
@ -182,6 +185,7 @@ static void *main_loop(void *targ) {
|
||||||
write_history(".history");
|
write_history(".history");
|
||||||
|
|
||||||
free(cmd);
|
free(cmd);
|
||||||
|
cmd = 0;
|
||||||
|
|
||||||
if (arg->usb_present == 1) {
|
if (arg->usb_present == 1) {
|
||||||
rarg.run = 0;
|
rarg.run = 0;
|
||||||
|
|
Loading…
Reference in a new issue