summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2007-02-16 13:15:16 +0000
committerSimon Josefsson <simon@josefsson.org>2007-02-16 13:15:16 +0000
commit758e79b88cf4ea9192a6147f0637aa8aaf501743 (patch)
treeb6e8db518fe6bd86c3dcbda58e335bf45ac92c4f /tests
parent854eecb0c57058815058ee13352a69a1fa844804 (diff)
downloadgnutls-758e79b88cf4ea9192a6147f0637aa8aaf501743.tar.gz
Fix mem leak.
Diffstat (limited to 'tests')
-rw-r--r--tests/hostname-check/hostname-check.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/hostname-check/hostname-check.c b/tests/hostname-check/hostname-check.c
index ac37e5da5e..3f4cc74d9f 100644
--- a/tests/hostname-check/hostname-check.c
+++ b/tests/hostname-check/hostname-check.c
@@ -115,4 +115,8 @@ doit (void)
fail ("Hostname match failure (%d)\n", ret);
else
success ("gnutls_x509_crt_check_hostname: %d\n", ret);
+
+ gnutls_x509_crt_deinit (cert);
+
+ gnutls_global_deinit ();
}