summaryrefslogtreecommitdiffstats
path: root/crypto/mem_dbg.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2001-02-22 15:23:44 +0100
committerRichard Levitte <levitte@openssl.org>2001-02-22 15:23:44 +0100
commit32654e792b8863024cfaff8e22cd1d53a5ff5626 (patch)
tree82b5b028f9909099774fb75cfc723916b139bdc8 /crypto/mem_dbg.c
parentWindows does not know of strigs.h or strcasecmp, so when in Windows, (diff)
downloadopenssl-32654e792b8863024cfaff8e22cd1d53a5ff5626.tar.xz
openssl-32654e792b8863024cfaff8e22cd1d53a5ff5626.zip
One indirection level too little compared to the
pre-CRYPTO_MEM_LEAK_CB time.
Diffstat (limited to 'crypto/mem_dbg.c')
-rw-r--r--crypto/mem_dbg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/mem_dbg.c b/crypto/mem_dbg.c
index 3c559e0996..5086bcde15 100644
--- a/crypto/mem_dbg.c
+++ b/crypto/mem_dbg.c
@@ -753,14 +753,14 @@ void CRYPTO_mem_leaks_fp(FILE *fp)
/* NB: The prototypes have been typedef'd to CRYPTO_MEM_LEAK_CB inside crypto.h
* If this code is restructured, remove the callback type if it is no longer
* needed. -- Geoff Thorpe */
-static void cb_leak(MEM *m, CRYPTO_MEM_LEAK_CB *cb)
+static void cb_leak(MEM *m, CRYPTO_MEM_LEAK_CB **cb)
{
(**cb)(m->order,m->file,m->line,m->num,m->addr);
}
-static IMPLEMENT_LHASH_DOALL_ARG_FN(cb_leak, MEM *, CRYPTO_MEM_LEAK_CB *)
+static IMPLEMENT_LHASH_DOALL_ARG_FN(cb_leak, MEM *, CRYPTO_MEM_LEAK_CB **)
-void CRYPTO_mem_leaks_cb(CRYPTO_MEM_LEAK_CB cb)
+void CRYPTO_mem_leaks_cb(CRYPTO_MEM_LEAK_CB *cb)
{
if (mh == NULL) return;
CRYPTO_w_lock(CRYPTO_LOCK_MALLOC2);