From: Kurt Zeilenga Date: Tue, 13 Nov 2001 20:51:31 +0000 (+0000) Subject: destroy thread attr after create. X-Git-Tag: OPENLDAP_REL_ENG_2_0_19~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72e4d5c18db356d0de1341fa157460e904cde50f;p=thirdparty%2Fopenldap.git destroy thread attr after create. --- 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,