From ac6b3e141573fde01ffeb75adc2e76c796af064d Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 3 Nov 2005 14:06:26 +0000 Subject: [PATCH] don't leak massaged referral DN --- servers/slapd/back-meta/map.c | 1 + 1 file changed, 1 insertion(+) 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... -- 2.39.5