]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Fixed memory leak in curve25519 test case.
authorNiels Möller <nisse@lysator.liu.se>
Sat, 2 Aug 2014 19:30:05 +0000 (21:30 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Sat, 2 Aug 2014 19:30:05 +0000 (21:30 +0200)
ChangeLog
testsuite/curve25519-dh-test.c

index 9d8eab6645ad72a8978fabf8aa7c224ed7dfa11c..9a4372b67dfe099c0246acc7a49900bb98afa125 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2014-08-02  Niels Möller  <nisse@lysator.liu.se>
 
+       * 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.
 
index d2467548a1de7a59ab7ad58a931b0665992b5c38..fc63e9741bccbb753bc3073ad9c5ef259711c353 100644 (file)
@@ -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;
 }