]> git.sur5r.net Git - openldap/commitdiff
fix leak in prev commit
authorHoward Chu <hyc@openldap.org>
Fri, 9 Jun 2006 20:26:36 +0000 (20:26 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 9 Jun 2006 20:26:36 +0000 (20:26 +0000)
servers/slapd/bconfig.c

index ec21bdc21018845c42272016d3f43a895624b6c0..f890030a240659bf3180b77947cb908b373bcc26 100644 (file)
@@ -2641,6 +2641,7 @@ config_replica(ConfigArgs *c) {
                                STRLENOF("://") + 1;
                        if (ludp->lud_port != LDAP_PORT) {
                                if (ludp->lud_port < 1 || ludp->lud_port > 65535) {
+                                       ldap_free_urldesc(ludp);
                                        snprintf( c->msg, sizeof( c->msg ), "<%s> invalid port",
                                                c->argv[0] );
                                        Debug(LDAP_DEBUG_ANY, "%s: %s\n", c->log, c->msg, 0 );