mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Plug leaks
This commit is contained in:
parent
e70ab8655c
commit
65ac57bcac
@ -344,7 +344,7 @@ slapi_int_connection_done_pb( Slapi_PBlock *pb )
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case LDAP_REQ_ADD:
|
case LDAP_REQ_ADD:
|
||||||
slap_mods_free( op->ora_modlist, 1 );
|
slap_mods_free( op->ora_modlist, 0 );
|
||||||
break;
|
break;
|
||||||
case LDAP_REQ_MODIFY:
|
case LDAP_REQ_MODIFY:
|
||||||
slap_mods_free( op->orm_modlist, 1 );
|
slap_mods_free( op->orm_modlist, 1 );
|
||||||
@ -362,6 +362,8 @@ slapi_int_connection_done_pb( Slapi_PBlock *pb )
|
|||||||
slapi_ch_free_string( &conn->c_authmech.bv_val );
|
slapi_ch_free_string( &conn->c_authmech.bv_val );
|
||||||
slapi_ch_free_string( &conn->c_dn.bv_val );
|
slapi_ch_free_string( &conn->c_dn.bv_val );
|
||||||
slapi_ch_free_string( &conn->c_ndn.bv_val );
|
slapi_ch_free_string( &conn->c_ndn.bv_val );
|
||||||
|
slapi_ch_free_string( &conn->c_peer_domain.bv_val );
|
||||||
|
slapi_ch_free_string( &conn->c_peer_name.bv_val );
|
||||||
|
|
||||||
if ( conn->c_sb != NULL ) {
|
if ( conn->c_sb != NULL ) {
|
||||||
ber_sockbuf_free( conn->c_sb );
|
ber_sockbuf_free( conn->c_sb );
|
||||||
@ -471,7 +473,7 @@ slapi_add_internal_pb( Slapi_PBlock *pb )
|
|||||||
|
|
||||||
/* Duplicate the values, because we may call slapi_entry_free() */
|
/* Duplicate the values, because we may call slapi_entry_free() */
|
||||||
rs->sr_err = slap_mods2entry( pb->pb_op->ora_modlist, &pb->pb_op->ora_e,
|
rs->sr_err = slap_mods2entry( pb->pb_op->ora_modlist, &pb->pb_op->ora_e,
|
||||||
1, 1, &rs->sr_text, pb->pb_textbuf, sizeof( pb->pb_textbuf ) );
|
1, 0, &rs->sr_text, pb->pb_textbuf, sizeof( pb->pb_textbuf ) );
|
||||||
if ( rs->sr_err != LDAP_SUCCESS ) {
|
if ( rs->sr_err != LDAP_SUCCESS ) {
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user