From: Pierangelo Masarati Date: Fri, 16 Dec 2005 16:19:17 +0000 (+0000) Subject: fix memory handling X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~569 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=96dd70da2895a6935e4f34148b684747c78dbc12;p=openldap fix memory handling --- diff --git a/servers/slapd/back-ldap/search.c b/servers/slapd/back-ldap/search.c index dde7795a85..166e360d71 100644 --- a/servers/slapd/back-ldap/search.c +++ b/servers/slapd/back-ldap/search.c @@ -299,11 +299,11 @@ retry: rc = rs->sr_err = send_search_entry( op, rs ); if ( !BER_BVISNULL( &ent.e_name ) ) { assert( ent.e_name.bv_val != bdn.bv_val ); - free( ent.e_name.bv_val ); + op->o_tmpfree( ent.e_name.bv_val, op->o_tmpmemctx ); BER_BVZERO( &ent.e_name ); } if ( !BER_BVISNULL( &ent.e_nname ) ) { - free( ent.e_nname.bv_val ); + op->o_tmpfree( ent.e_nname.bv_val, op->o_tmpmemctx ); BER_BVZERO( &ent.e_nname ); } entry_clean( &ent );