Skip to content
Snippets Groups Projects
Commit d0d80a63 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Put *free(NULL) asserts behind LDAP_MEMORY_DEBUG

parent 6968ede5
Branches
Tags
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment