From: Pierangelo Masarati Date: Tue, 1 Nov 2005 16:47:17 +0000 (+0000) Subject: don't leak matchedDN X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~145 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7146f4e21f1e4b995b75acd9f4e2cfc675c5cb49;p=openldap don't leak matchedDN --- diff --git a/servers/slapd/back-ldap/search.c b/servers/slapd/back-ldap/search.c index 45bc2e9152..8f33ae38f5 100644 --- a/servers/slapd/back-ldap/search.c +++ b/servers/slapd/back-ldap/search.c @@ -431,6 +431,7 @@ fail:; if ( dnPretty( NULL, &match, &pmatch, op->o_tmpmemctx ) == LDAP_SUCCESS ) { rs->sr_matched = pmatch.bv_val; + LDAP_FREE( match.bv_val ); } else { rs->sr_matched = match.bv_val;