aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test.c12
1 files changed, 10 insertions, 2 deletions
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;
}