diff options
author | Richard Levitte <levitte@openssl.org> | 1999-12-17 12:50:06 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 1999-12-17 12:50:06 +0000 |
commit | 1ad9bdf253c7ce1568abeafd4aa3308bd6ca684c (patch) | |
tree | 925b26323176d785479338bd48f8ef998705668b /apps | |
parent | 8a1580096be9b4896978b3f8bbde911427d7acb3 (diff) |
Use MemCheck_start() instead of CRYPTO_mem_ctrl(), and generate a small leak to test (conditional)
Diffstat (limited to 'apps')
-rw-r--r-- | apps/openssl.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/openssl.c b/apps/openssl.c index 9a337fb316..27073f51c3 100644 --- a/apps/openssl.c +++ b/apps/openssl.c @@ -136,7 +136,7 @@ int main(int Argc, char *Argv[]) 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); + MemCheck_start() ERR_load_crypto_strings(); @@ -236,6 +236,13 @@ end: EVP_cleanup(); ERR_free_strings(); +#ifdef LEVITTE_DEBUG + { + /* Just to make sure I get a memory leak I can see :-) */ + char *p = Malloc(1024); + } +#endif + CRYPTO_mem_leaks(bio_err); if (bio_err != NULL) { |