Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only call pthread_attr_destroy() after getattr_np() succeeds on all l…
…ibcs The calling convention of pthread_getattr_np() is to initialize the pthread_attr_t, so _destroy() is only necessary on success (and _init() isn't necessary beforehand). On the other hand, FreeBSD wants the attr_t to be initialized before pthread_attr_get_np(), and therefore it should always be destroyed afterwards.
- Loading branch information