mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
fix coverity CID 344398
This commit is contained in:
parent
2b4d110836
commit
3d8b165033
1 changed files with 1 additions and 2 deletions
|
@ -474,13 +474,13 @@ static int CmdFlashMemInfo(const char *Cmd) {
|
||||||
|
|
||||||
// load private
|
// load private
|
||||||
res = mbedtls_pk_parse_keyfile(&pkctx, path, NULL);
|
res = mbedtls_pk_parse_keyfile(&pkctx, path, NULL);
|
||||||
|
free(path);
|
||||||
//res = mbedtls_pk_parse_public_keyfile(&pkctx, path);
|
//res = mbedtls_pk_parse_public_keyfile(&pkctx, path);
|
||||||
if (res == 0) {
|
if (res == 0) {
|
||||||
PrintAndLogEx(NORMAL, " ( " _GREEN_("ok") " )");
|
PrintAndLogEx(NORMAL, " ( " _GREEN_("ok") " )");
|
||||||
} else {
|
} else {
|
||||||
PrintAndLogEx(NORMAL, " ( " _RED_("fail") " )");
|
PrintAndLogEx(NORMAL, " ( " _RED_("fail") " )");
|
||||||
mbedtls_pk_free(&pkctx);
|
mbedtls_pk_free(&pkctx);
|
||||||
free(path);
|
|
||||||
return PM3_EFILE;
|
return PM3_EFILE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -489,7 +489,6 @@ static int CmdFlashMemInfo(const char *Cmd) {
|
||||||
PrintAndLogEx(FAILED, "failed to allocate rsa context memory");
|
PrintAndLogEx(FAILED, "failed to allocate rsa context memory");
|
||||||
return PM3_EMALLOC;
|
return PM3_EMALLOC;
|
||||||
}
|
}
|
||||||
free(path);
|
|
||||||
got_private = true;
|
got_private = true;
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue