summaryrefslogtreecommitdiff
path: root/tests/x509cert.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2011-05-21 09:59:35 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2011-05-21 10:02:19 +0200
commitb1f29acf584794671eb4bae739d721b9f3bad4e8 (patch)
treeb6e71afa1f6a37affb54ca0145995ef03ebcc56e /tests/x509cert.c
parent2865b443111657152e2dc57fbbefee33b859c5b2 (diff)
downloadgnutls-b1f29acf584794671eb4bae739d721b9f3bad4e8.tar.gz
corrected memory leak.
Diffstat (limited to 'tests/x509cert.c')
-rw-r--r--tests/x509cert.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/x509cert.c b/tests/x509cert.c
index ddc08d63b3..6007b95d8f 100644
--- a/tests/x509cert.c
+++ b/tests/x509cert.c
@@ -182,6 +182,8 @@ doit (void)
fail("gnutls_certificate_get_isser");
fprintf(stderr, "Issuer's DN: %s\n", dn);
+ gnutls_x509_crt_deinit(crt);
+ gnutls_certificate_free_credentials(x509_cred);
success("success");
}