Skip to content

Commit

Permalink
Fix Memory Leak in C FFI Test
Browse files Browse the repository at this point in the history
  • Loading branch information
atreiber94 committed Jun 12, 2024
1 parent d1244e3 commit 9890bfa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tests/test_ffi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 9890bfa

Please sign in to comment.