From f938617d45d1ef62a3315591174a7dc6862aa8b7 Mon Sep 17 00:00:00 2001 From: vnugent Date: Wed, 23 Oct 2024 21:59:03 -0400 Subject: fix: Add Valgrind to testing suite, openssl fixes --- tests/test.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'tests/test.c') diff --git a/tests/test.c b/tests/test.c index 20a0e5d..e8ce756 100644 --- a/tests/test.c +++ b/tests/test.c @@ -507,8 +507,16 @@ static int TestPublicApiArgumentValidation() macArgs.payloadSize = 0; TEST(NCVerifyMac(ctx, &secKey, &pubKey, &macArgs), ARG_RANGE_ERROR_POS_3) } - - PRINTL("\nPASSED: Public API argument validation tests completed") + + ENSURE(NCDestroyContext(ctx) == NC_SUCCESS); + +#ifdef NOSCRYPTUTIL_H + NCUtilContextFree(ctx); +#else + free(ctx); +#endif + + PRINTL("\nPASSED: Public API argument validation tests completed"); return 0; } -- cgit