Use MemCheck_start() instead of CRYPTO_mem_ctrl(), and generate a small leak to test...
authorRichard Levitte <levitte@openssl.org>
Fri, 17 Dec 1999 12:50:06 +0000 (12:50 +0000)
committerRichard Levitte <levitte@openssl.org>
Fri, 17 Dec 1999 12:50:06 +0000 (12:50 +0000)
apps/openssl.c

index 9a337fb316e745f3d98879138200752cd9e0d962..27073f51c3087293d0b241a4b522e936debef935 100644 (file)
@@ -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)
                {