From: Kurt Zeilenga Date: Fri, 11 Feb 2000 21:11:44 +0000 (+0000) Subject: Put *free(NULL) asserts behind LDAP_MEMORY_DEBUG X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~3191 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d0d80a633a25730356c7834aede8b85a186a409b;p=openldap Put *free(NULL) asserts behind LDAP_MEMORY_DEBUG --- diff --git a/libraries/libldap/controls.c b/libraries/libldap/controls.c index cab753e881..3632b8fc0f 100644 --- a/libraries/libldap/controls.c +++ b/libraries/libldap/controls.c @@ -226,7 +226,9 @@ int ldap_int_get_controls( void ldap_control_free( LDAPControl *c ) { +#ifdef LDAP_MEMORY_DEBUG assert( c != NULL ); +#endif if ( c != NULL ) { if( c->ldctl_oid != NULL) { @@ -247,7 +249,9 @@ ldap_control_free( LDAPControl *c ) void ldap_controls_free( LDAPControl **controls ) { +#ifdef LDAP_MEMORY_DEBUG assert( controls != NULL ); +#endif if ( controls != NULL ) { int i;