diff --git a/libraries/libldap/request.c b/libraries/libldap/request.c index 20a6c39ca0..d922d2d544 100644 --- a/libraries/libldap/request.c +++ b/libraries/libldap/request.c @@ -1438,6 +1438,7 @@ ldap_chase_referrals( LDAP *ld, id, sref, srv, &rinfo.ri_request ); if ( ber == NULL ) { + ldap_free_urllist( srv ); return -1 ; }