summaryrefslogtreecommitdiffstats
path: root/apps/openssl.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>1999-12-17 12:50:06 +0000
committerRichard Levitte <levitte@openssl.org>1999-12-17 12:50:06 +0000
commit1ad9bdf253c7ce1568abeafd4aa3308bd6ca684c (patch)
tree925b26323176d785479338bd48f8ef998705668b /apps/openssl.c
parent8a1580096be9b4896978b3f8bbde911427d7acb3 (diff)
Use MemCheck_start() instead of CRYPTO_mem_ctrl(), and generate a small leak to test (conditional)
Diffstat (limited to 'apps/openssl.c')
-rw-r--r--apps/openssl.c9
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)
{