From 7146f4e21f1e4b995b75acd9f4e2cfc675c5cb49 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Tue, 1 Nov 2005 16:47:17 +0000 Subject: [PATCH] don't leak matchedDN --- servers/slapd/back-ldap/search.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.5