projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
adee13d
)
allocate bio_err before memory debugging is enabled to avoid memory leaks
author
Bodo Möller
<bodo@openssl.org>
Tue, 19 Nov 2002 12:10:08 +0000
(12:10 +0000)
committer
Bodo Möller
<bodo@openssl.org>
Tue, 19 Nov 2002 12:10:08 +0000
(12:10 +0000)
(we can't release it before the CRYPTO_mem_leaks() call!)
Submitted by: Nils Larsch
ssl/ssltest.c
patch
|
blob
|
history
diff --git
a/ssl/ssltest.c
b/ssl/ssltest.c
index c779751b8c7c4b1dacd96eef81f70ed039897292..d6704852b45b7184bf2410b6fcc4a44f37eea6ae 100644
(file)
--- a/
ssl/ssltest.c
+++ b/
ssl/ssltest.c
@@
-224,12
+224,13
@@
int main(int argc, char *argv[])
verbose = 0;
debug = 0;
cipher = 0;
-
+
+ bio_err=BIO_new_fp(stderr,BIO_NOCLOSE);
+
CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON);
RAND_seed(rnd_seed, sizeof rnd_seed);
- bio_err=BIO_new_fp(stderr,BIO_NOCLOSE);
bio_stdout=BIO_new_fp(stdout,BIO_NOCLOSE);
argc--;