From 72e4d5c18db356d0de1341fa157460e904cde50f Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Tue, 13 Nov 2001 20:51:31 +0000 Subject: [PATCH] destroy thread attr after create. --- libraries/libldap_r/thr_posix.c | 1 + 1 file changed, 1 insertion(+) 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, -- 2.47.2