summaryrefslogtreecommitdiff
path: root/regress/lib
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2023-07-06 15:11:22 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2023-07-06 15:11:22 +0000
commitf2eb934e28a935baf965c23166dc2a7cf9b56f55 (patch)
tree098dcedf695593455759675ec5d016e1ab4e6c10 /regress/lib
parentc27009aebda86eb4ec2fe6564267cc6ed50bc4a0 (diff)
bn_print: remove unused bio, plug leak
Diffstat (limited to 'regress/lib')
-rw-r--r--regress/lib/libcrypto/bn/bn_print.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/regress/lib/libcrypto/bn/bn_print.c b/regress/lib/libcrypto/bn/bn_print.c
index a19fa84cbc4..ce3d50d2616 100644
--- a/regress/lib/libcrypto/bn/bn_print.c
+++ b/regress/lib/libcrypto/bn/bn_print.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bn_print.c,v 1.1 2023/07/06 15:08:54 tb Exp $ */
+/* $OpenBSD: bn_print.c,v 1.2 2023/07/06 15:11:21 tb Exp $ */
/*
* Copyright (c) 2023 Theo Buehler <tb@openbsd.org>
@@ -181,13 +181,9 @@ main(void)
{
const struct print_test *test;
size_t testcase = 0;
- BIO *bio;
BIGNUM *bn;
int failed = 0;
- if ((bio = BIO_new_fp(stdout, BIO_NOCLOSE)) == NULL)
- errx(1, "BIO_new_fp");
-
/* zero */
if ((bn = BN_new()) == NULL)
errx(1, "BN_new");
@@ -276,5 +272,7 @@ main(void)
failed |= 1;
}
+ BN_free(bn);
+
return failed;
}