From: Luke Howard Date: Mon, 1 Aug 2005 15:23:12 +0000 (+0000) Subject: Plug leaks X-Git-Tag: OPENLDAP_AC_BP~118 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=65ac57bcac17288bf70969326a51310b71febc82;p=openldap Plug leaks --- diff --git a/servers/slapd/slapi/slapi_ops.c b/servers/slapd/slapi/slapi_ops.c index b5f1c48b5d..3820f57af2 100644 --- a/servers/slapd/slapi/slapi_ops.c +++ b/servers/slapd/slapi/slapi_ops.c @@ -344,7 +344,7 @@ slapi_int_connection_done_pb( Slapi_PBlock *pb ) } break; case LDAP_REQ_ADD: - slap_mods_free( op->ora_modlist, 1 ); + slap_mods_free( op->ora_modlist, 0 ); break; case LDAP_REQ_MODIFY: 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_dn.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 ) { 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() */ 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 ) { goto cleanup; }