diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index c27528cb83..a362d2b453 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -916,7 +916,9 @@ getNextPage: #endif ldap_unbind( ld ); +#ifdef HAVE_CYRUS_SASL sasl_done(); +#endif ldap_pvt_tls_destroy(); return( rc ); }