From: Niels Möller Date: Thu, 17 Jul 2014 20:22:51 +0000 (+0200) Subject: Fix memory leak in test case. X-Git-Tag: nettle_3.1rc1~155^2~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43d4d194b3d268b71e26d1d2f456cbc63ab2dd0b;p=thirdparty%2Fnettle.git Fix memory leak in test case. --- diff --git a/ChangeLog b/ChangeLog index 48e295bf..0de42229 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-07-17 Niels Möller + + * testsuite/curve25519-dup-test.c (test_main): Free allocated + storage. + 2014-07-15 Niels Möller * ecc-add-eh.c (ecc_add_eh, ecc_add_eh_itch): New file, new diff --git a/testsuite/curve25519-dup-test.c b/testsuite/curve25519-dup-test.c index 3a6bddab..2490900b 100644 --- a/testsuite/curve25519-dup-test.c +++ b/testsuite/curve25519-dup-test.c @@ -76,4 +76,10 @@ test_main (void) ecc_eh_to_a (ecc, 0, pa, pe, scratch); test_ecc_point (ecc, &g4, pa); + + free (g); + free (z); + free (pe); + free (pa); + free (scratch); }