diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2011-05-26 21:33:36 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2011-05-26 21:33:36 +0200 |
commit | 34b05fd2dc7ead24386b24e9471fad729cb4189b (patch) | |
tree | b95eafd4e8189440b113a4cc046f9f513b3ba032 /tests | |
parent | c483418b8210bc47a765f6b0e0dc99aec63e80fd (diff) | |
download | libssh-34b05fd2dc7ead24386b24e9471fad729cb4189b.tar.gz libssh-34b05fd2dc7ead24386b24e9471fad729cb4189b.tar.xz libssh-34b05fd2dc7ead24386b24e9471fad729cb4189b.zip |
Fix memory leaks in pki and testcase
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unittests/torture_pki.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unittests/torture_pki.c b/tests/unittests/torture_pki.c index f0dbd20..760c1ce 100644 --- a/tests/unittests/torture_pki.c +++ b/tests/unittests/torture_pki.c @@ -276,6 +276,7 @@ static void torture_pki_pki_publickey_from_privatekey_RSA(void **state) { free(key_str); ssh_key_free(key); + ssh_key_free(pubkey); } static void torture_pki_pki_publickey_from_privatekey_DSA(void **state) { @@ -300,6 +301,7 @@ static void torture_pki_pki_publickey_from_privatekey_DSA(void **state) { free(key_str); ssh_key_free(key); + ssh_key_free(pubkey); } int torture_run_tests(void) { |