diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-08-21 12:41:42 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-08-21 12:41:42 +0200 |
commit | c8d06b6b1c1e1e2f51bc11effb1fcaf24c954acc (patch) | |
tree | fa875e2116924cd6147724289bfe7406d4b32363 /tests/unittests | |
parent | 948400ed923bba1335cc0444df397da13cb07ef5 (diff) | |
download | libssh-c8d06b6b1c1e1e2f51bc11effb1fcaf24c954acc.tar.gz libssh-c8d06b6b1c1e1e2f51bc11effb1fcaf24c954acc.tar.xz libssh-c8d06b6b1c1e1e2f51bc11effb1fcaf24c954acc.zip |
tests: Fix memleak in torture_pki.
Diffstat (limited to 'tests/unittests')
-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 ef003f1c..1d14938e 100644 --- a/tests/unittests/torture_pki.c +++ b/tests/unittests/torture_pki.c @@ -484,6 +484,7 @@ static void torture_pki_duplicate_key_rsa(void **state) ssh_key_free(pubkey); ssh_key_free(privkey); + ssh_key_free(privkey_dup); ssh_string_free_char(b64_key); ssh_string_free_char(b64_key_gen); } @@ -526,6 +527,7 @@ static void torture_pki_duplicate_key_dsa(void **state) ssh_key_free(pubkey); ssh_key_free(privkey); + ssh_key_free(privkey_dup); ssh_string_free_char(b64_key); ssh_string_free_char(b64_key_gen); } |