FIX: Coverity Scan fixes, a bunch of them.

This commit is contained in:
iceman1001 2016-01-16 22:58:44 +01:00
commit e1ad67eaf2
7 changed files with 27 additions and 30 deletions

View file

@ -1454,7 +1454,6 @@ int CmdT55xxBruteForce(const char *Cmd) {
getchar();
printf("\naborted via keyboard!\n");
free(keyBlock);
free(p);
return 0;
}
@ -1466,7 +1465,6 @@ int CmdT55xxBruteForce(const char *Cmd) {
if ( !AquireData(T55x7_PAGE0, T55x7_CONFIGURATION_BLOCK, TRUE, testpwd)) {
PrintAndLog("Aquireing data from device failed. Quitting");
free(keyBlock);
free(p);
return 0;
}
@ -1475,13 +1473,11 @@ int CmdT55xxBruteForce(const char *Cmd) {
if ( found ) {
PrintAndLog("Found valid password: [%08X]", testpwd);
free(keyBlock);
free(p);
return 0;
}
}
PrintAndLog("Password NOT found.");
free(keyBlock);
free(p);
return 0;
}