Merge pull request #7673 from douzzer/20240621-fix-oqs_dilithium_make_key-leak

20240621-fix-oqs_dilithium_make_key-leak
This commit is contained in:
JacobBarthelmeh
2024-06-21 15:37:24 -06:00
committed by GitHub

View File

@@ -5427,6 +5427,10 @@ static int oqs_dilithium_make_key(dilithium_key* key, WC_RNG* rng)
key->pubKeySet = 1; key->pubKeySet = 1;
} }
if (oqssig != NULL) {
OQS_SIG_free(oqssig);
}
return ret; return ret;
} }
#endif /* WOLFSSL_DILITHIUM_NO_MAKE_KEY */ #endif /* WOLFSSL_DILITHIUM_NO_MAKE_KEY */