aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2010-03-13 16:38:43 +0100
committerAndreas Schneider <mail@cynapses.org>2010-03-13 16:38:43 +0100
commit8fd6c8bc02f92525ec6fe2628d2fe8ea3a57f16b (patch)
tree6559710b24565652aa623cb90796a5bc30dcf573 /tests
parent863cd6fcbafabf6e582ea9bbc1be13b8af6a6617 (diff)
downloadlibssh-8fd6c8bc02f92525ec6fe2628d2fe8ea3a57f16b.tar.gz
libssh-8fd6c8bc02f92525ec6fe2628d2fe8ea3a57f16b.tar.xz
libssh-8fd6c8bc02f92525ec6fe2628d2fe8ea3a57f16b.zip
Fixed a memory leak in keyfile torture test.
Diffstat (limited to 'tests')
-rw-r--r--tests/unittests/torture_keyfiles.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unittests/torture_keyfiles.c b/tests/unittests/torture_keyfiles.c
index 707de141..d08d49ac 100644
--- a/tests/unittests/torture_keyfiles.c
+++ b/tests/unittests/torture_keyfiles.c
@@ -117,6 +117,7 @@ START_TEST (torture_pubkey_generate_from_privkey)
ck_assert(pubkey != NULL);
pubkey_new = publickey_to_string(pubkey);
+ publickey_free(pubkey);
ck_assert(memcmp(pubkey_orig->string, pubkey_new->string, pubkey_orig->size));
rc = ssh_publickey_to_file(session, LIBSSH_RSA_TESTKEY ".pub", pubkey_new, type_new);