diff options
author | Bodo Möller <bodo@openssl.org> | 2000-01-15 03:08:52 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2000-01-15 03:08:52 +0000 |
commit | 4fd2ead09dfc35b5eaae1fb1ff449ebd1e54d08e (patch) | |
tree | da0c831e80bf5134e71e8ae0a988e935c3deb132 /apps | |
parent | b46c3e9b691d9ae9579f3762f3c6b7fbca0df6c7 (diff) | |
download | openssl-4fd2ead09dfc35b5eaae1fb1ff449ebd1e54d08e.tar.gz |
Enable memory checking earlier (we correctly free everything
except for the BIO through which we print the memory leak list,
and the leak printing function ignores this one block).
Diffstat (limited to 'apps')
-rw-r--r-- | apps/openssl.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/apps/openssl.c b/apps/openssl.c index e910faf701..71f5ba7f67 100644 --- a/apps/openssl.c +++ b/apps/openssl.c @@ -120,9 +120,6 @@ int main(int Argc, char *Argv[]) arg.data=NULL; arg.count=0; - /* SSLeay_add_ssl_algorithms(); is called in apps_startup() */ - apps_startup(); - #if defined(DEBUG) && !defined(WINDOWS) && !defined(MSDOS) #ifdef SIGBUS signal(SIGBUS,sig_stop); @@ -132,12 +129,14 @@ int main(int Argc, char *Argv[]) #endif #endif + CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON); + + apps_startup(); + if (bio_err == NULL) if ((bio_err=BIO_new(BIO_s_file())) != NULL) BIO_set_fp(bio_err,stderr,BIO_NOCLOSE|BIO_FP_TEXT); - CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON); - ERR_load_crypto_strings(); /* Lets load up our environment a little */ |