X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Flibldap%2Ffree.c;h=8d871ef241e755fb60b385f07461060997ca07d0;hb=a2eec74fc1d535fa9092f4d7b82a669b39eef539;hp=99257665a4ec584f2c223273ad25482efea16af5;hpb=9fef42d3f82ac622eea6c1c565b0e84e81104560;p=openldap diff --git a/libraries/libldap/free.c b/libraries/libldap/free.c index 99257665a4..8d871ef241 100644 --- a/libraries/libldap/free.c +++ b/libraries/libldap/free.c @@ -1,5 +1,6 @@ +/* $OpenLDAP$ */ /* - * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved. + * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved. * COPYING RESTRICTIONS APPLY, see COPYRIGHT file */ /* Portions @@ -15,7 +16,6 @@ #include #include -#include #include #include @@ -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 ); + } }