1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

testsc: fix memory leak in test_ntru.

We forgot to free the key pair at the end of the test, which is
harmless except that it makes Leak Sanitiser complain loudly.
This commit is contained in:
Simon Tatham 2022-08-16 18:24:20 +01:00
parent 83ecb07296
commit 99dd370503

View File

@ -1610,6 +1610,8 @@ static void test_ntru(void)
ntru_encode_plaintext(plaintext, p, BinarySink_UPCAST(buffer));
log_end();
ntru_keypair_free(keypair);
break;
}