]> git.sur5r.net Git - openldap/commitdiff
fix potential double-free (valgrind; ITS#5137)
authorPierangelo Masarati <ando@openldap.org>
Fri, 14 Sep 2007 23:58:00 +0000 (23:58 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 14 Sep 2007 23:58:00 +0000 (23:58 +0000)
servers/slapd/back-ldap/chain.c

index 509a65b187cc4093d3ec0f807c8bcb0390688ef9..ebaee37604e019a89046836c93f910d667d487ad 100644 (file)
@@ -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;