mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Disable LDAP_MEMORY_DEBUG on NT (should not have been enabled by default).
Fix LDAP_MEMORY_DEBUG realloc size bug, thanks Alex.
This commit is contained in:
parent
2c4a3c8442
commit
f34c94e5d5
2 changed files with 2 additions and 2 deletions
|
|
@ -24,7 +24,7 @@
|
|||
#define DIRSEP "\\"
|
||||
|
||||
#if defined( _DEBUG ) && !defined( LDAP_DEBUG )
|
||||
#define LDAP_MEMORY_DEBUG 1
|
||||
/* #define LDAP_MEMORY_DEBUG 1 */
|
||||
#define LDAP_DEBUG 1
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -194,7 +194,7 @@ ber_memrealloc( void* p, size_t s )
|
|||
((char *)p - sizeof(struct ber_mem_hdr));
|
||||
assert( mh->bm_junk == BER_MEM_JUNK );
|
||||
|
||||
p = realloc( mh, s );
|
||||
p = realloc( mh, s + sizeof(struct ber_mem_hdr) );
|
||||
|
||||
if( p == NULL ) return NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue