diff options
| author | tb <> | 2023-07-06 15:11:21 +0000 |
|---|---|---|
| committer | tb <> | 2023-07-06 15:11:21 +0000 |
| commit | abd3f470c9f4289846a45fced437cafde40ac738 (patch) | |
| tree | cb3cbdfc36ba372410589dff303892511ab5a0a9 /src | |
| parent | 00bbfde632c5be90383befe335477f0775fab20a (diff) | |
| download | openbsd-abd3f470c9f4289846a45fced437cafde40ac738.tar.gz openbsd-abd3f470c9f4289846a45fced437cafde40ac738.tar.bz2 openbsd-abd3f470c9f4289846a45fced437cafde40ac738.zip | |
bn_print: remove unused bio, plug leak
Diffstat (limited to 'src')
| -rw-r--r-- | src/regress/lib/libcrypto/bn/bn_print.c | 8 |
1 files changed, 3 insertions, 5 deletions
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 @@ | |||
| 1 | /* $OpenBSD: bn_print.c,v 1.1 2023/07/06 15:08:54 tb Exp $ */ | 1 | /* $OpenBSD: bn_print.c,v 1.2 2023/07/06 15:11:21 tb Exp $ */ |
| 2 | 2 | ||
| 3 | /* | 3 | /* |
| 4 | * Copyright (c) 2023 Theo Buehler <tb@openbsd.org> | 4 | * Copyright (c) 2023 Theo Buehler <tb@openbsd.org> |
| @@ -181,13 +181,9 @@ main(void) | |||
| 181 | { | 181 | { |
| 182 | const struct print_test *test; | 182 | const struct print_test *test; |
| 183 | size_t testcase = 0; | 183 | size_t testcase = 0; |
| 184 | BIO *bio; | ||
| 185 | BIGNUM *bn; | 184 | BIGNUM *bn; |
| 186 | int failed = 0; | 185 | int failed = 0; |
| 187 | 186 | ||
| 188 | if ((bio = BIO_new_fp(stdout, BIO_NOCLOSE)) == NULL) | ||
| 189 | errx(1, "BIO_new_fp"); | ||
| 190 | |||
| 191 | /* zero */ | 187 | /* zero */ |
| 192 | if ((bn = BN_new()) == NULL) | 188 | if ((bn = BN_new()) == NULL) |
| 193 | errx(1, "BN_new"); | 189 | errx(1, "BN_new"); |
| @@ -276,5 +272,7 @@ main(void) | |||
| 276 | failed |= 1; | 272 | failed |= 1; |
| 277 | } | 273 | } |
| 278 | 274 | ||
| 275 | BN_free(bn); | ||
| 276 | |||
| 279 | return failed; | 277 | return failed; |
| 280 | } | 278 | } |
