Skip to content

Commit 0cf5421

Browse files
Merge pull request #7673 from douzzer/20240621-fix-oqs_dilithium_make_key-leak
20240621-fix-oqs_dilithium_make_key-leak
2 parents 7405ea8 + 25b7249 commit 0cf5421

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

wolfcrypt/src/dilithium.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5427,6 +5427,10 @@ static int oqs_dilithium_make_key(dilithium_key* key, WC_RNG* rng)
54275427
key->pubKeySet = 1;
54285428
}
54295429

5430+
if (oqssig != NULL) {
5431+
OQS_SIG_free(oqssig);
5432+
}
5433+
54305434
return ret;
54315435
}
54325436
#endif /* WOLFSSL_DILITHIUM_NO_MAKE_KEY */

0 commit comments

Comments
 (0)