mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-31 20:19:34 -05:00
Put *free(NULL) asserts behind LDAP_MEMORY_DEBUG
This commit is contained in:
parent
6968ede534
commit
d0d80a633a
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue