]> git.sur5r.net Git - openldap/commitdiff
plug memory leak
authorHallvard Furuseth <hallvard@openldap.org>
Thu, 19 Aug 1999 11:44:44 +0000 (11:44 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Thu, 19 Aug 1999 11:44:44 +0000 (11:44 +0000)
servers/slapd/daemon.c

index 7341b836809dde0f0d61f5830035af3b582eeb7c..666b6cf20d95cec6a2b158ac85d02bc561f06130 100644 (file)
@@ -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;
                }
        }