From: Howard Chu Date: Fri, 9 Jun 2006 20:26:36 +0000 (+0000) Subject: fix leak in prev commit X-Git-Tag: OPENLDAP_REL_ENG_2_4_3ALPHA~9^2~162 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=25e12b07b3e0f012c00b85e18c84655b911e7b54;p=openldap fix leak in prev commit --- diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index ec21bdc210..f890030a24 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -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 );