wolfcrypt/src/dilithium.c: add missing OQS_SIG_free() in oqs_dilithium_make_key() (liboqs wrapper).

This commit is contained in:
Daniel Pouzzner
2024-06-21 14:04:32 -05:00
parent 0303a828ec
commit 25b72497d8

View File

@ -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 */