mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-22 14:39:24 -05: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));
|
ntru_encode_plaintext(plaintext, p, BinarySink_UPCAST(buffer));
|
||||||
log_end();
|
log_end();
|
||||||
|
|
||||||
|
ntru_keypair_free(keypair);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user