]> granicus.if.org Git - apache/commitdiff
remove the recycled_pool variable to keep it more in sync with worker.
authorGreg Ames <gregames@apache.org>
Sat, 8 Oct 2005 03:47:15 +0000 (03:47 +0000)
committerGreg Ames <gregames@apache.org>
Sat, 8 Oct 2005 03:47:15 +0000 (03:47 +0000)
event already had logic in the listener thread error legs to prevent
leaking ptrans, so this is mostly cosmetic.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@307250 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/experimental/event/event.c

index 2d26957bdb2643f80974440cf3e17ae407e086a3..72ba228b095f5c23f8d11c247ed08970cd512532 100644 (file)
@@ -930,13 +930,12 @@ static void *listener_thread(apr_thread_t * thd, void *dummy)
             }
             else {
                 /* A Listener Socket is ready for an accept() */
-                apr_pool_t *recycled_pool = NULL;
 
                 lr = (ap_listen_rec *) pt->baton;
 
-                ap_pop_pool(&recycled_pool, worker_queue_info);
+                ap_pop_pool(&ptrans, worker_queue_info);
 
-                if (recycled_pool == NULL) {
+                if (ptrans == NULL) {
                     /* create a new transaction pool for each accepted socket */
                     apr_allocator_t *allocator;
 
@@ -953,9 +952,6 @@ static void *listener_thread(apr_thread_t * thd, void *dummy)
                         return NULL;
                     }
                 }
-                else {
-                    ptrans = recycled_pool;
-                }
 
                 apr_pool_tag(ptrans, "transaction");