diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-05-22 17:40:40 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-05-22 17:40:40 +0200 |
commit | 500eab9c58c0db9aebd2e74ffd71b1ba84a44ae6 (patch) | |
tree | a47ce0552303a6100f847f179073b2904261a166 /tests/pkcs12_s2k_pem.c | |
parent | ec82610e5ff750ff3abd6444dfa13683ed094a61 (diff) | |
download | gnutls-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.c | 3 |
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 (); |