summaryrefslogtreecommitdiff
path: root/tests/mpi.c
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@unixuser.org>2009-08-20 10:33:00 +0900
committerSimon Josefsson <simon@josefsson.org>2009-08-20 10:04:51 +0200
commit65fa3349f14a85fd04dbae15afe16731aad2331c (patch)
tree131fe4cff97e3e739698e7c457072700bfb6ebdf /tests/mpi.c
parent41090bcba5b98add10021590adbe4c8542f33850 (diff)
downloadgnutls-65fa3349f14a85fd04dbae15afe16731aad2331c.tar.gz
Fix memleaks.
Signed-off-by: Simon Josefsson <simon@josefsson.org>
Diffstat (limited to 'tests/mpi.c')
-rw-r--r--tests/mpi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/mpi.c b/tests/mpi.c
index e5a4a28946..e37f273dd3 100644
--- a/tests/mpi.c
+++ b/tests/mpi.c
@@ -77,5 +77,10 @@ doit (void)
if (_gnutls_mpi_cmp_ui (n4, 0) != 0 && _gnutls_mpi_cmp_ui (n4, 1) != 0)
fail ("mpi_cmp_ui failed\n");
+ _gnutls_mpi_release (&n1);
+ _gnutls_mpi_release (&n2);
+ _gnutls_mpi_release (&n3);
+ _gnutls_mpi_release (&n4);
+
success ("mpi ops ok\n");
}