1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-29 13:01:13 +03:00

Fixed a memory leak in keyfile torture test.

This commit is contained in:
Andreas Schneider
2010-03-13 16:38:43 +01:00
parent 863cd6fcba
commit 8fd6c8bc02

View File

@ -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);