Commit 1ad9bdf2 authored by Richard Levitte's avatar Richard Levitte
Browse files

Use MemCheck_start() instead of CRYPTO_mem_ctrl(), and generate a small leak to test (conditional)

parent 8a158009
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -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)
		{