Fix memory leaks in pki and testcase

This commit is contained in:
Aris Adamantiadis
2011-05-26 21:33:36 +02:00
parent c483418b82
commit 34b05fd2dc
2 changed files with 2 additions and 2 deletions

View File

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