Skip to content

Commit

Permalink
wolfcrypt/src/dilithium.c: add missing OQS_SIG_free() in oqs_dilithiu…
Browse files Browse the repository at this point in the history
…m_make_key() (liboqs wrapper).
  • Loading branch information
douzzer committed Jun 21, 2024
1 parent 0303a82 commit 25b7249
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 25b7249

Please sign in to comment.