mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
plug memory leak
This commit is contained in:
parent
8ead8c5fd9
commit
2d6460f880
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user