X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Flibldap%2Ffree.c;h=ae208894d018a4f3a5e3dfc6cf40c782dc11f352;hb=5f53b747a5054cfecd6ade134fea27330062ffb8;hp=ba8c70902b88c10682723b88c25f09f5927691a1;hpb=bed646552971a1cd2c44394b8c4bbbe873d1a22c;p=openldap diff --git a/libraries/libldap/free.c b/libraries/libldap/free.c index ba8c70902b..ae208894d0 100644 --- a/libraries/libldap/free.c +++ b/libraries/libldap/free.c @@ -13,7 +13,7 @@ #include "portable.h" #include -#include +#include #include #include @@ -37,23 +37,29 @@ ldap_memvfree( void **v ) } void * -ldap_memalloc( size_t s ) +ldap_memalloc( ber_len_t s ) { return LDAP_MALLOC( s ); } void * -ldap_memcalloc( size_t n, size_t s ) +ldap_memcalloc( ber_len_t n, ber_len_t s ) { return LDAP_CALLOC( n, s ); } void * -ldap_memrealloc( void* p, size_t s ) +ldap_memrealloc( void* p, ber_len_t s ) { return LDAP_REALLOC( p, s ); } +char * +ldap_strdup( LDAP_CONST char *p ) +{ + return LDAP_STRDUP( p ); +} + void ldap_getfilter_free( LDAPFiltDesc *lfdp ) { @@ -120,6 +126,7 @@ ldap_mods_free( LDAPMod **mods, int freemods ) LDAP_FREE( (char *) mods[i] ); } - if ( freemods ) + if ( freemods ) { LDAP_FREE( (char *) mods ); + } }