diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2013-08-07 08:56:18 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2013-08-07 18:03:16 +0900 |
commit | cc082642c1b0f2a3e9ca78e1ffd3f64417c204bd (patch) | |
tree | 3dde745984bc5a893e58b583179070064de2c2ce /tests/mpitests.c | |
parent | 065d446478bf68553339fc77a89b8369bd110a18 (diff) | |
download | libgcrypt-cc082642c1b0f2a3e9ca78e1ffd3f64417c204bd.tar.gz |
tests: fix memory leaks.
* tests/benchmark.c (dsa_bench): Release SIG.
* tests/mpitests.c (test_powm): Release BASE, EXP, MOD, and RES.
* tests/prime.c (check_primes): Release PRIME.
* tests/tsexp.c (basic): Use intermediate variable M for constant.
Release S1, S2 and A.
Diffstat (limited to 'tests/mpitests.c')
-rw-r--r-- | tests/mpitests.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/mpitests.c b/tests/mpitests.c index 432f3e89..03c15b90 100644 --- a/tests/mpitests.c +++ b/tests/mpitests.c @@ -362,6 +362,10 @@ test_powm (void) if (gcry_mpi_cmp (res, base)) die ("test_powm failed at %d\n", __LINE__); + gcry_mpi_release (base); + gcry_mpi_release (exp); + gcry_mpi_release (mod); + gcry_mpi_release (res); /* Fixme: We should add the rest of the cases of course. */ |