Fixes thread handle leaks.
Attachment: leak.diff Description: application/unknown-content-type-diff_auto_file