destroy thread attr after create.

This commit is contained in:
Kurt Zeilenga 2001-11-13 20:51:31 +00:00
parent 5da989414f
commit 72e4d5c18d

View file

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