diff --git a/libraries/libldap_r/thr_posix.c b/libraries/libldap_r/thr_posix.c index 07e1e8f6ea..4c322cf4b3 100644 --- a/libraries/libldap_r/thr_posix.c +++ b/libraries/libldap_r/thr_posix.c @@ -113,6 +113,7 @@ ldap_pvt_thread_create( ldap_pvt_thread_t * thread, (void) pthread_detach( *thread ); } #endif + pthread_attr_destroy(&attr); #else rtn = pthread_create( thread, LDAP_INT_THREAD_ATTR_DEFAULT,