summaryrefslogtreecommitdiff
path: root/src/regress/lib/libcrypto/mlkem/parse_test_file.c
diff options
context:
space:
mode:
authortb <>2025-06-03 10:29:37 +0000
committertb <>2025-06-03 10:29:37 +0000
commit020638f36696a59371461074ab9d5feeb573fb75 (patch)
treeadb0740bdee87c5883679fbfbedd821e35bcfa48 /src/regress/lib/libcrypto/mlkem/parse_test_file.c
parentdaafaf5616bdc547f23dfc260752e0713ca3d654 (diff)
downloadopenbsd-020638f36696a59371461074ab9d5feeb573fb75.tar.gz
openbsd-020638f36696a59371461074ab9d5feeb573fb75.tar.bz2
openbsd-020638f36696a59371461074ab9d5feeb573fb75.zip
parse_test_file: add a missing call to finish in last cleanup
Diffstat (limited to 'src/regress/lib/libcrypto/mlkem/parse_test_file.c')
-rw-r--r--src/regress/lib/libcrypto/mlkem/parse_test_file.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/regress/lib/libcrypto/mlkem/parse_test_file.c b/src/regress/lib/libcrypto/mlkem/parse_test_file.c
index 1bb2d3af9b..9f3e5f3a1a 100644
--- a/src/regress/lib/libcrypto/mlkem/parse_test_file.c
+++ b/src/regress/lib/libcrypto/mlkem/parse_test_file.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: parse_test_file.c,v 1.5 2025/06/03 10:25:29 tb Exp $ */ 1/* $OpenBSD: parse_test_file.c,v 1.6 2025/06/03 10:29:37 tb Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2024 Theo Buehler <tb@openbsd.org> 4 * Copyright (c) 2024 Theo Buehler <tb@openbsd.org>
@@ -736,7 +736,10 @@ parse_next_line(struct parse *p)
736static void 736static void
737parse_finish(struct parse *p) 737parse_finish(struct parse *p)
738{ 738{
739 const struct test_parse *tctx = p->tctx;
740
739 parse_state_finish(&p->state); 741 parse_state_finish(&p->state);
742 tctx->finish(p->ctx);
740 743
741 free(p->buf); 744 free(p->buf);
742 745