From: Pierangelo Masarati Date: Fri, 14 Sep 2007 23:58:00 +0000 (+0000) Subject: fix potential double-free (valgrind; ITS#5137) X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~639 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9c5c20b1b98af695573a3150dab49850910fff46;p=openldap fix potential double-free (valgrind; ITS#5137) --- diff --git a/servers/slapd/back-ldap/chain.c b/servers/slapd/back-ldap/chain.c index 509a65b187..ebaee37604 100644 --- a/servers/slapd/back-ldap/chain.c +++ b/servers/slapd/back-ldap/chain.c @@ -726,9 +726,6 @@ cleanup:; ldap_memfree( li.li_uri ); li.li_uri = NULL; - op->o_tmpfree( op->o_req_dn.bv_val, op->o_tmpmemctx ); - op->o_tmpfree( op->o_req_ndn.bv_val, op->o_tmpmemctx ); - if ( temporary ) { lip->li_uri = NULL; lip->li_bvuri = NULL;