mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-22 15:49:34 -05:00
ITS#8215 Remove a memory leak
This commit is contained in:
parent
f1cd76db75
commit
b47f32f6f2
1 changed files with 3 additions and 2 deletions
|
|
@ -425,12 +425,13 @@ slapmodify( int argc, char **argv )
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ber_bvarray_free( mods.sm_values );
|
||||||
|
ber_bvarray_free( mods.sm_nvalues );
|
||||||
|
|
||||||
if ( local_rc != LDAP_SUCCESS ) {
|
if ( local_rc != LDAP_SUCCESS ) {
|
||||||
fprintf( stderr, "%s: DN=\"%s\": unable to modify attr=%s\n",
|
fprintf( stderr, "%s: DN=\"%s\": unable to modify attr=%s\n",
|
||||||
progname, e->e_dn, mods.sm_desc->ad_cname.bv_val );
|
progname, e->e_dn, mods.sm_desc->ad_cname.bv_val );
|
||||||
rc = EXIT_FAILURE;
|
rc = EXIT_FAILURE;
|
||||||
ber_bvarray_free( mods.sm_values );
|
|
||||||
ber_bvarray_free( mods.sm_nvalues );
|
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue