From 0f26a0d42b4fc9fb06ab3138b36db2bcc69d2cbd Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Tue, 12 Aug 2025 22:51:00 +0200 Subject: lib: Fix memory leaks in tests Fixes memory leaks in the tests that had escaped detection. Signed-off-by: Dimitri Staessens --- src/irmd/tests/oap_test.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/irmd') diff --git a/src/irmd/tests/oap_test.c b/src/irmd/tests/oap_test.c index e9f67505..2e27762d 100644 --- a/src/irmd/tests/oap_test.c +++ b/src/irmd/tests/oap_test.c @@ -160,6 +160,7 @@ static int test_oap_hdr_init_fini_data(void) goto fail_req_hdr_sz; } + freebuf(data); oap_hdr_fini(&oap_hdr); TEST_SUCCESS(); @@ -232,6 +233,7 @@ static int test_oap_hdr_init_fini_signed(void) crypt_free_crt(pubcrt2); crypt_free_crt(pubcrt); crypt_free_key(pk); + crypt_free_key(pkp); TEST_SUCCESS(); -- cgit v1.2.3