Commit b47f32f6 authored by Ondřej Kuzník's avatar Ondřej Kuzník Committed by Howard Chu
Browse files

ITS#8215 Remove a memory leak

parent f1cd76db
...@@ -425,12 +425,13 @@ slapmodify( int argc, char **argv ) ...@@ -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;
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment