ITS#8215 Remove a memory leak

This commit is contained in:
Ondřej Kuzník 2015-08-11 14:26:39 +02:00 committed by Howard Chu
parent f1cd76db75
commit b47f32f6f2

View File

@ -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;
}
}