2 * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
3 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
12 ber_memfree( void *p )
14 ber_int_options.lbo_valid = LBER_INITIALIZED;
19 ber_memalloc( size_t s )
21 ber_int_options.lbo_valid = LBER_INITIALIZED;
22 return LBER_MALLOC( s );
26 ber_memcalloc( size_t n, size_t s )
28 ber_int_options.lbo_valid = LBER_INITIALIZED;
29 return LBER_CALLOC( n, s );
33 ber_memrealloc( void* p, size_t s )
35 ber_int_options.lbo_valid = LBER_INITIALIZED;
36 return LBER_REALLOC( p, s );
39 BER_MEMORY_FN ber_int_realloc = NULL;
42 ber_int_calloc( size_t n, size_t s )
44 ber_int_options.lbo_valid = LBER_INITIALIZED;
48 void *p = (*ber_int_realloc)( NULL, size );
49 return p ? memset( p, 0, size ) : p;