ITS#1125: fix memory leak

based upon patch provided by Dmitri.Belotchkine@AtosOrigin.com
This commit is contained in:
Kurt Zeilenga 2001-04-25 01:43:26 +00:00
parent c4a99aa914
commit b545ab01c7

View file

@ -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",