]> git.sur5r.net Git - openldap/commitdiff
don't leak massaged referral DN
authorPierangelo Masarati <ando@openldap.org>
Thu, 3 Nov 2005 14:06:26 +0000 (14:06 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 3 Nov 2005 14:06:26 +0000 (14:06 +0000)
servers/slapd/back-meta/map.c

index 40adf2c6f4f7a42313607fff3b18a9b81c9eecdb..f655e9e3925af5454805e63788d47bbfc7a5ca25 100644 (file)
@@ -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...