From: Hallvard Furuseth Date: Thu, 19 Aug 1999 11:44:44 +0000 (+0000) Subject: plug memory leak X-Git-Tag: TWEB_OL_BASE~164 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2d6460f880d5bf34f44e35b7db46e6f8bbed6466;p=openldap plug memory leak --- diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index 7341b83680..666b6cf20d 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -425,6 +425,7 @@ int slapd_daemon_init(char *urls, int port, int tls_port ) if( i == 0 ) { Debug( LDAP_DEBUG_ANY, "daemon_init: no listeners to open (%s)\n", urls, 0, 0 ); + charray_free( u ); return -1; } @@ -437,6 +438,7 @@ int slapd_daemon_init(char *urls, int port, int tls_port ) slap_listeners[i] = open_listener( u[i], port, tls_port ); if( slap_listeners[i] == NULL ) { + charray_free( u ); return -1; } }