mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-28 10:39:34 -05:00
ITS#6005 librewrite must use the same mem allocators as slapd
This commit is contained in:
parent
0d745b2665
commit
5d74bea520
1 changed files with 7 additions and 0 deletions
|
|
@ -39,6 +39,13 @@
|
|||
|
||||
#include <rewrite.h>
|
||||
|
||||
#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 <ldap_pvt_thread.h>
|
||||
|
|
|
|||
Loading…
Reference in a new issue