From 96dd70da2895a6935e4f34148b684747c78dbc12 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 16 Dec 2005 16:19:17 +0000 Subject: [PATCH] fix memory handling --- servers/slapd/back-ldap/search.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); -- 2.39.5