From: Howard Chu Date: Sat, 7 Mar 2009 23:21:26 +0000 (+0000) Subject: ITS#6005 librewrite must use the same mem allocators as slapd X-Git-Tag: ACLCHECK_0~723 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5d74bea520fc644975f763b7f9559832a5e07e38;p=openldap ITS#6005 librewrite must use the same mem allocators as slapd --- 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