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:
parent
83ecb07296
commit
99dd370503
@ -1610,6 +1610,8 @@ static void test_ntru(void)
|
||||
ntru_encode_plaintext(plaintext, p, BinarySink_UPCAST(buffer));
|
||||
log_end();
|
||||
|
||||
ntru_keypair_free(keypair);
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user