Skip to content

Commit

Permalink
Merge pull request #7673 from douzzer/20240621-fix-oqs_dilithium_make…
Browse files Browse the repository at this point in the history
…_key-leak

20240621-fix-oqs_dilithium_make_key-leak
  • Loading branch information
JacobBarthelmeh authored Jun 21, 2024
2 parents 7405ea8 + 25b7249 commit 0cf5421
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wolfcrypt/src/dilithium.c
Original file line number Diff line number Diff line change
Expand Up @@ -5427,6 +5427,10 @@ static int oqs_dilithium_make_key(dilithium_key* key, WC_RNG* rng)
key->pubKeySet = 1;
}

if (oqssig != NULL) {
OQS_SIG_free(oqssig);
}

return ret;
}
#endif /* WOLFSSL_DILITHIUM_NO_MAKE_KEY */
Expand Down

0 comments on commit 0cf5421

Please sign in to comment.