apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject svn commit: r936323 - /apr/apr/trunk/threadproc/os2/thread.c
Date Wed, 21 Apr 2010 14:30:47 GMT
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 */
 }



Mime
View raw message