mirror of
https://github.com/openbsd/src.git
synced 2024-12-22 16:42:56 -08:00
bn_print: remove unused bio, plug leak
This commit is contained in:
parent
f356d55941
commit
69421fdc9e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user