mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08: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
@ -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 New Issue
Block a user