aboutsummaryrefslogtreecommitdiff
path: root/tests/test_olm_signature.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_olm_signature.cpp')
-rw-r--r--tests/test_olm_signature.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_olm_signature.cpp b/tests/test_olm_signature.cpp
index d7259de..f53bcec 100644
--- a/tests/test_olm_signature.cpp
+++ b/tests/test_olm_signature.cpp
@@ -69,6 +69,9 @@ assert_not_equals(std::size_t(-1), ::olm_account_identity_keys(
account, id_keys, id_keys_size
));
+olm_clear_account(account);
+free(account_buffer);
+
void * utility_buffer = check_malloc(::olm_utility_size());
::OlmUtility * utility = ::olm_utility(utility_buffer);
@@ -76,6 +79,13 @@ assert_not_equals(std::size_t(-1), ::olm_ed25519_verify(
utility, id_keys + 71, 43, message, message_size, signature, signature_size
));
+olm_clear_utility(utility);
+free(utility_buffer);
+
+free(id_keys);
+free(signature);
+free(message);
+
}
}