switch ( deref ) {
case LDAP_DEREF_FINDING:
case LDAP_DEREF_ALWAYS:
- free (realBase);
realBase = derefDN ( be, conn, op, base );
break;
default:
default:
send_ldap_result( conn, op, LDAP_PROTOCOL_ERROR, "",
"Bad scope" );
+ if( realBase != NULL) {
+ free( realBase );
+ }
return( -1 );
}
if ( matched != NULL ) {
free( matched );
}
+ if( realBase != NULL) {
+ free( realBase );
+ }
return( -1 );
}
+ if ( matched != NULL ) {
+ free( matched );
+ }
+
rmaxsize = 0;
nrefs = 0;
rbuf = rcur = NULL;
pthread_mutex_unlock( &op->o_abandonmutex );
idl_free( candidates );
free( rbuf );
+ if( realBase != NULL) {
+ free( realBase );
+ }
return( 0 );
}
pthread_mutex_unlock( &op->o_abandonmutex );
NULL, nentries );
idl_free( candidates );
free( rbuf );
+ if( realBase != NULL) {
+ free( realBase );
+ }
return( 0 );
}
pthread_mutex_unlock( ¤ttime_mutex );
}
free( rbuf );
+ if( realBase != NULL) {
+ free( realBase );
+ }
+
return( 0 );
}