From 5d74bea520fc644975f763b7f9559832a5e07e38 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 7 Mar 2009 23:21:26 +0000 Subject: [PATCH] ITS#6005 librewrite must use the same mem allocators as slapd --- libraries/librewrite/rewrite-int.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libraries/librewrite/rewrite-int.h b/libraries/librewrite/rewrite-int.h index 3af3366101..8f9c437693 100644 --- a/libraries/librewrite/rewrite-int.h +++ b/libraries/librewrite/rewrite-int.h @@ -39,6 +39,13 @@ #include +#define malloc(x) ber_memalloc(x) +#define calloc(x,y) ber_memcalloc(x,y) +#define realloc(x,y) ber_memrealloc(x,y) +#define free(x) ber_memfree(x) +#undef strdup +#define strdup(x) ber_strdup(x) + /* Uncomment to use ldap pvt threads */ #define USE_REWRITE_LDAP_PVT_THREADS #include -- 2.39.5