From 99dd370503b3ab86028544d0bc36b2ff59ab3675 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 16 Aug 2022 18:24:20 +0100 Subject: [PATCH] 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. --- test/testsc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/testsc.c b/test/testsc.c index 55a64aba..85f7de21 100644 --- a/test/testsc.c +++ b/test/testsc.c @@ -1610,6 +1610,8 @@ static void test_ntru(void) ntru_encode_plaintext(plaintext, p, BinarySink_UPCAST(buffer)); log_end(); + ntru_keypair_free(keypair); + break; }