From: Niels Möller Date: Sat, 2 Aug 2014 19:30:05 +0000 (+0200) Subject: Fixed memory leak in curve25519 test case. X-Git-Tag: nettle_3.1rc1~155^2~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=131d068d4fdbe41e13b4d04cb14ff3c764464552;p=thirdparty%2Fnettle.git Fixed memory leak in curve25519 test case. --- diff --git a/ChangeLog b/ChangeLog index 9d8eab66..9a4372b6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2014-08-02 Niels Möller + * testsuite/curve25519-dh-test.c (curve25519_sqrt): Fixed memory + leak, a mpz_clear call was missing. + * ecc-internal.h (ECC_MUL_A_EH_WBITS): Set to 4, to enable window-based scalar multiplication. diff --git a/testsuite/curve25519-dh-test.c b/testsuite/curve25519-dh-test.c index d2467548..fc63e974 100644 --- a/testsuite/curve25519-dh-test.c +++ b/testsuite/curve25519-dh-test.c @@ -111,6 +111,7 @@ int curve25519_sqrt (const struct ecc_curve *ecc, mpz_clear (sm1h); mpz_clear (x); mpz_clear (b); + mpz_clear (t); return success; }