Commit 73c1eee0 authored by Daniel Salzman's avatar Daniel Salzman

tests: fix some memory leaks in test_keystore_pkcs8

parent ba25f38e
......@@ -78,9 +78,13 @@ int main(void)
dnssec_key_set_algorithm(key, DNSSEC_KEY_ALGORITHM_RSA_SHA256);
r = dnssec_keystore_export(store, id_A, key);
ok(r == DNSSEC_ENOENT, "read removed");
dnssec_key_free(key);
// cleanup
free(id_A);
free(id_B);
r = dnssec_keystore_close(store);
ok(r == DNSSEC_EOK, "close");
......@@ -88,6 +92,7 @@ int main(void)
ok(r == DNSSEC_EOK, "deinit");
test_rm_rf(dir);
free(dir);
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment