X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Flibldap%2Ffree.c;h=ae208894d018a4f3a5e3dfc6cf40c782dc11f352;hb=5f53b747a5054cfecd6ade134fea27330062ffb8;hp=99257665a4ec584f2c223273ad25482efea16af5;hpb=9fef42d3f82ac622eea6c1c565b0e84e81104560;p=openldap diff --git a/libraries/libldap/free.c b/libraries/libldap/free.c index 99257665a4..ae208894d0 100644 --- a/libraries/libldap/free.c +++ b/libraries/libldap/free.c @@ -37,19 +37,19 @@ 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 ); } @@ -126,6 +126,7 @@ ldap_mods_free( LDAPMod **mods, int freemods ) LDAP_FREE( (char *) mods[i] ); } - if ( freemods ) + if ( freemods ) { LDAP_FREE( (char *) mods ); + } }