summaryrefslogtreecommitdiff
path: root/tests/pkcs12_s2k_pem.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2011-05-22 17:40:40 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2011-05-22 17:40:40 +0200
commit500eab9c58c0db9aebd2e74ffd71b1ba84a44ae6 (patch)
treea47ce0552303a6100f847f179073b2904261a166 /tests/pkcs12_s2k_pem.c
parentec82610e5ff750ff3abd6444dfa13683ed094a61 (diff)
downloadgnutls-500eab9c58c0db9aebd2e74ffd71b1ba84a44ae6.tar.gz
leak fix and updates for new formats.
Diffstat (limited to 'tests/pkcs12_s2k_pem.c')
-rw-r--r--tests/pkcs12_s2k_pem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/pkcs12_s2k_pem.c b/tests/pkcs12_s2k_pem.c
index 8b5992c1dc..a58906b7ed 100644
--- a/tests/pkcs12_s2k_pem.c
+++ b/tests/pkcs12_s2k_pem.c
@@ -281,13 +281,14 @@ main (void)
ret = gnutls_x509_privkey_import_pkcs8 (key, &tmp,
GNUTLS_X509_FMT_PEM,
keys[i].password, 0);
+ gnutls_x509_privkey_deinit (key);
+
if (ret != keys[i].expected_result)
{
printf ("fail[%d]: %d: %s\n", (int) i, ret, gnutls_strerror (ret));
return 1;
}
- gnutls_x509_privkey_deinit (key);
}
gnutls_global_deinit ();