Skip to content

Commit 25b7249

Browse files
committed
wolfcrypt/src/dilithium.c: add missing OQS_SIG_free() in oqs_dilithium_make_key() (liboqs wrapper).
1 parent 0303a82 commit 25b7249

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)