From: Pierangelo Masarati Date: Thu, 3 Nov 2005 14:06:26 +0000 (+0000) Subject: don't leak massaged referral DN X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~122 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ac6b3e141573fde01ffeb75adc2e76c796af064d;p=openldap don't leak massaged referral DN --- diff --git a/servers/slapd/back-meta/map.c b/servers/slapd/back-meta/map.c index 40adf2c6f4..f655e9e392 100644 --- a/servers/slapd/back-meta/map.c +++ b/servers/slapd/back-meta/map.c @@ -674,6 +674,7 @@ ldap_back_referral_result_rewrite( ludp->lud_dn = dn.bv_val; newurl = ldap_url_desc2str( ludp ); + free( dn.bv_val ); if ( newurl == NULL ) { /* FIXME: leave attr untouched * even if ldap_url_desc2str failed...