]> git.sur5r.net Git - openldap/commitdiff
Plug memory leak
authorHoward Chu <hyc@openldap.org>
Wed, 18 Dec 2002 22:44:13 +0000 (22:44 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 18 Dec 2002 22:44:13 +0000 (22:44 +0000)
servers/slapd/saslauthz.c

index aa01dca507751d657e92767f6def2f9928c4631e..b243542d9e259894b8db74bee2d054388438b276 100644 (file)
@@ -588,6 +588,7 @@ void slap_sasl2dn( Connection *conn,
        }
 
        rc = slap_parseURI( &regout, &dn, &scope, &filter );
+       if( regout.bv_val ) ch_free( regout.bv_val );
        if( rc != LDAP_SUCCESS ) {
                goto FINISHED;
        }