mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-18 18:18:06 -05:00
ITS#1125: fix memory leak
based upon patch provided by Dmitri.Belotchkine@AtosOrigin.com
This commit is contained in:
parent
c4a99aa914
commit
b545ab01c7
1 changed files with 2 additions and 1 deletions
|
|
@ -54,7 +54,8 @@ ldap_open( char *host, int port )
|
|||
}
|
||||
|
||||
if ( ldap_delayed_open( ld ) < 0 ) {
|
||||
return( NULL );
|
||||
ldap_ld_free( ld, 0 );
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Debug( LDAP_DEBUG_TRACE, "ldap_open successful, ld_host is %s\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue