projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35780c2
)
Make sure "CRYPTO_mem_leaks_fp" doesn't itself create a reportable memory
author
Geoff Thorpe
<geoff@openssl.org>
Mon, 27 Aug 2001 22:12:56 +0000
(22:12 +0000)
committer
Geoff Thorpe
<geoff@openssl.org>
Mon, 27 Aug 2001 22:12:56 +0000
(22:12 +0000)
leak.
crypto/mem_dbg.c
patch
|
blob
|
history
diff --git
a/crypto/mem_dbg.c
b/crypto/mem_dbg.c
index 4e851de3d82197fc89b7313acb8f7f3e043d2014..ed282330712a243e9c3eba001b2c02fb5c773078 100644
(file)
--- a/
crypto/mem_dbg.c
+++ b/
crypto/mem_dbg.c
@@
-737,8
+737,13
@@
void CRYPTO_mem_leaks_fp(FILE *fp)
BIO *b;
if (mh == NULL) return;
+ /* Need to turn off memory checking when allocated BIOs ... especially
+ * as we're creating them at a time when we're trying to check we've not
+ * left anything un-free()'d!! */
+ MemCheck_off();
if ((b=BIO_new(BIO_s_file())) == NULL)
return;
+ MemCheck_on();
BIO_set_fp(b,fp,BIO_NOCLOSE);
CRYPTO_mem_leaks(b);
BIO_free(b);