Skip to content

Commit

Permalink
in private case we calloc, need to free that memory
Browse files Browse the repository at this point in the history
  • Loading branch information
iceman1001 committed Feb 21, 2023
1 parent 64cc21b commit 4807fae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/src/cmdflashmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,7 @@ static int CmdFlashMemInfo(const char *Cmd) {

if (got_private == false) {
mbedtls_rsa_free(rsa);
free(rsa);
}

mbedtls_pk_free(&pkctx);
Expand Down

0 comments on commit 4807fae

Please sign in to comment.