From abd3f470c9f4289846a45fced437cafde40ac738 Mon Sep 17 00:00:00 2001 From: tb <> Date: Thu, 6 Jul 2023 15:11:21 +0000 Subject: bn_print: remove unused bio, plug leak --- src/regress/lib/libcrypto/bn/bn_print.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/regress/lib/libcrypto/bn/bn_print.c b/src/regress/lib/libcrypto/bn/bn_print.c index a19fa84cbc..ce3d50d261 100644 --- a/src/regress/lib/libcrypto/bn/bn_print.c +++ b/src/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 @@ -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; } -- cgit v1.2.3-55-g6feb