mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-19 14:30:57 +08:00
plug one-time leaks
This commit is contained in:
parent
6d7689b7e3
commit
39d721504a
@ -1408,6 +1408,7 @@ ldap_chain_db_destroy(
|
||||
rc = ldap_chain_db_func( be, db_destroy );
|
||||
|
||||
if ( lc ) {
|
||||
avl_free( lc->lc_lai.lai_tree, NULL );
|
||||
ch_free( lc );
|
||||
}
|
||||
|
||||
|
@ -67,7 +67,7 @@ enum {
|
||||
|
||||
static ConfigTable ldapcfg[] = {
|
||||
{ "uri", "uri", 2, 2, 0,
|
||||
ARG_STRING|ARG_MAGIC|LDAP_BACK_CFG_URI,
|
||||
ARG_MAGIC|LDAP_BACK_CFG_URI,
|
||||
ldap_back_cf_gen, "( OLcfgDbAt:0.14 "
|
||||
"NAME 'olcDbURI' "
|
||||
"DESC 'URI (list) for remote DSA' "
|
||||
@ -298,7 +298,10 @@ ldap_back_cf_gen( ConfigArgs *c )
|
||||
switch( c->type ) {
|
||||
case LDAP_BACK_CFG_URI:
|
||||
if ( li->li_uri != NULL ) {
|
||||
c->value_string = ch_strdup( li->li_uri );
|
||||
struct berval bv;
|
||||
|
||||
ber_str2bv( li->li_uri, 0, 0, &bv );
|
||||
value_add_one( &c->rvalue_vals, &bv );
|
||||
|
||||
} else {
|
||||
rc = 1;
|
||||
@ -629,7 +632,7 @@ ldap_back_cf_gen( ConfigArgs *c )
|
||||
}
|
||||
|
||||
/* PARANOID: DN and more are not required nor allowed */
|
||||
urlrc = ldap_url_parselist_ext( &lud, c->value_string, ", \t" );
|
||||
urlrc = ldap_url_parselist_ext( &lud, c->argv[ 1 ], ", \t" );
|
||||
if ( urlrc != LDAP_URL_SUCCESS ) {
|
||||
char *why;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user