mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
ITS#8215 Remove a memory leak
This commit is contained in:
parent
f1cd76db75
commit
b47f32f6f2
@ -425,12 +425,13 @@ slapmodify( int argc, char **argv )
|
||||
break;
|
||||
}
|
||||
|
||||
ber_bvarray_free( mods.sm_values );
|
||||
ber_bvarray_free( mods.sm_nvalues );
|
||||
|
||||
if ( local_rc != LDAP_SUCCESS ) {
|
||||
fprintf( stderr, "%s: DN=\"%s\": unable to modify attr=%s\n",
|
||||
progname, e->e_dn, mods.sm_desc->ad_cname.bv_val );
|
||||
rc = EXIT_FAILURE;
|
||||
ber_bvarray_free( mods.sm_values );
|
||||
ber_bvarray_free( mods.sm_nvalues );
|
||||
goto cleanup;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user