mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
coverity fix: 279106
This commit is contained in:
parent
7303dd8c5d
commit
084a8161d4
1 changed files with 15 additions and 3 deletions
|
@ -3081,13 +3081,25 @@ static void DecodeAccessRights(uint16_t accrights) {
|
||||||
if (car == NULL) return;
|
if (car == NULL) return;
|
||||||
|
|
||||||
char *rwa = DecodeAccessValue(read_write_access);
|
char *rwa = DecodeAccessValue(read_write_access);
|
||||||
if (rwa == NULL) return;
|
if (rwa == NULL) {
|
||||||
|
free(car);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
char *wa = DecodeAccessValue(write_access);
|
char *wa = DecodeAccessValue(write_access);
|
||||||
if (wa == NULL) return;
|
if (wa == NULL) {
|
||||||
|
free(car);
|
||||||
|
free(rwa);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
char *ra = DecodeAccessValue(read_access);
|
char *ra = DecodeAccessValue(read_access);
|
||||||
if (ra == NULL) return;
|
if (ra == NULL) {
|
||||||
|
free(car);
|
||||||
|
free(rwa);
|
||||||
|
free(wa);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
PrintAndLogEx(INFO, " Access Rights: 0x%04X - Change %s - RW %s - W %s - R %s", accrights, car, rwa, wa, ra);
|
PrintAndLogEx(INFO, " Access Rights: 0x%04X - Change %s - RW %s - W %s - R %s", accrights, car, rwa, wa, ra);
|
||||||
free(car);
|
free(car);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue