]> git.sur5r.net Git - openldap/commitdiff
destroy thread attr after create.
authorKurt Zeilenga <kurt@openldap.org>
Tue, 13 Nov 2001 20:51:31 +0000 (20:51 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 13 Nov 2001 20:51:31 +0000 (20:51 +0000)
libraries/libldap_r/thr_posix.c

index 07e1e8f6ea392c893a8c80ba524e8e5cfafebd95..4c322cf4b313a0cc0a4bd1600c32c758bdb06d78 100644 (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,