You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by bj...@apache.org on 2010/04/21 16:30:47 UTC
svn commit: r936323 - /apr/apr/trunk/threadproc/os2/thread.c
Author: bjh
Date: Wed Apr 21 14:30:46 2010
New Revision: 936323
URL: http://svn.apache.org/viewvc?rev=936323&view=rev
Log:
OS/2: Clean up a thread's pool when it terminates.
Modified:
apr/apr/trunk/threadproc/os2/thread.c
Modified: apr/apr/trunk/threadproc/os2/thread.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/threadproc/os2/thread.c?rev=936323&r1=936322&r2=936323&view=diff
==============================================================================
--- apr/apr/trunk/threadproc/os2/thread.c (original)
+++ apr/apr/trunk/threadproc/os2/thread.c Wed Apr 21 14:30:46 2010
@@ -70,6 +70,7 @@ static void apr_thread_begin(void *arg)
{
apr_thread_t *thread = (apr_thread_t *)arg;
thread->exitval = thread->func(thread, thread->data);
+ apr_pool_destroy(thread->pool);
}
@@ -132,6 +133,7 @@ APR_DECLARE(apr_os_thread_t) apr_os_thre
APR_DECLARE(apr_status_t) apr_thread_exit(apr_thread_t *thd, apr_status_t retval)
{
thd->exitval = retval;
+ apr_pool_destroy(thd->pool);
_endthread();
return -1; /* If we get here something's wrong */
}