mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
fix leak
This commit is contained in:
parent
aeb20faf51
commit
9019ea74ee
@ -1177,11 +1177,13 @@ ad_define_option( const char *name, const char *fname, int lineno )
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ad_unparse_options( BerVarray *res ){
|
void
|
||||||
|
ad_unparse_options( BerVarray *res )
|
||||||
|
{
|
||||||
int i;
|
int i;
|
||||||
for ( i=0; i < option_count; i++ ) {
|
for ( i = 0; i < option_count; i++ ) {
|
||||||
ber_bvarray_add( res, ber_bvdup( &(options[i].name) ));
|
value_add_one( res, &options[i].name );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Find the definition of the option name or prefix matching the arguments */
|
/* Find the definition of the option name or prefix matching the arguments */
|
||||||
|
@ -198,6 +198,7 @@ monitor_entry_stub(
|
|||||||
rdnNormalize( 0, NULL, NULL, rdn, &nrdn, NULL );
|
rdnNormalize( 0, NULL, NULL, rdn, &nrdn, NULL );
|
||||||
build_new_dn( &e->e_name, pdn, rdn, NULL );
|
build_new_dn( &e->e_name, pdn, rdn, NULL );
|
||||||
build_new_dn( &e->e_nname, pndn, &nrdn, NULL );
|
build_new_dn( &e->e_nname, pndn, &nrdn, NULL );
|
||||||
|
ber_memfree( nrdn.bv_val );
|
||||||
nat.bv_val = ptr + 1;
|
nat.bv_val = ptr + 1;
|
||||||
nat.bv_len = rdn->bv_len - ( nat.bv_val - rdn->bv_val );
|
nat.bv_len = rdn->bv_len - ( nat.bv_val - rdn->bv_val );
|
||||||
attr_merge_normalize_one( e, slap_schema.si_ad_objectClass,
|
attr_merge_normalize_one( e, slap_schema.si_ad_objectClass,
|
||||||
|
Loading…
Reference in New Issue
Block a user