Created attachment 22184 [details] Proposed updates to 1.3 copy of win32/thread.c I was trying to locate memory leaks while running an application on Windows and found that the apr_thread_t allocated w/in apr_thread_create() is never freed. This leak is noticable when the process has lots of transient threads. In my case the transient threads are managed by the thread pooling support in apr_thread_pool.c. In a test copy I updated apr_thread_create() to allocate the apr_thread_t out of the pool created by apr_thread_create(). apr_thread_exit() and apr_thread_join() had to be updated as well. I will attach a diff of the changes. The updates assume that the thread creator will call either apr_thread_detach() followed by apr_thread_exit() or apr_thread_join() to clean up the thread.