From 9890bfa1b0e80f0f07418ad7323b46e964e79dea Mon Sep 17 00:00:00 2001 From: Amos Treiber Date: Wed, 12 Jun 2024 16:42:15 +0200 Subject: [PATCH] Fix Memory Leak in C FFI Test --- src/tests/test_ffi.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tests/test_ffi.cpp b/src/tests/test_ffi.cpp index 6f1de9a3c5..4405f546ae 100644 --- a/src/tests/test_ffi.cpp +++ b/src/tests/test_ffi.cpp @@ -379,6 +379,8 @@ class FFI_RNG_Test final : public FFI_Test { uint8_t not_really_entropy[32] = {0}; TEST_FFI_OK(botan_rng_add_entropy, (tpm2_rng, not_really_entropy, 32)); } + + TEST_FFI_OK(botan_tpm2_ctx_destroy, (tpm2_ctx)); } TEST_FFI_OK(botan_rng_destroy, (rng));