]> granicus.if.org Git - apache/commitdiff
* Remove call to apr_reslist_destroy. With the latest trunk version of
authorRuediger Pluem <rpluem@apache.org>
Mon, 4 Aug 2008 12:53:50 +0000 (12:53 +0000)
committerRuediger Pluem <rpluem@apache.org>
Mon, 4 Aug 2008 12:53:50 +0000 (12:53 +0000)
  apr-util this causes a lock during shutdown as at the point of time we would
  execute apr_reslist_destroy the reslist is already destroyed, because we are
  in a cleanup of the same pool where the reslist registered itself as
  precleanup.
  With apr-util 1.3.x calling apr_reslist_destroy is not really useful and
  needed in this case as we are in a cleanup that was registered against the
  same pool that is used by the reslist. As it was registered *after* the
  reslist was created it just runs *before* the reslist cleanup would run. This
  is somewhat pointless here and we could leave the job of destroying the
  reslist to the reslist cleanup.

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

modules/proxy/proxy_util.c

index b1d0c918a5742afb94ce788c2617fab33ad7f85c..2103b4104922a48a40e60ed230dbec5d82d13de3 100644 (file)
@@ -1380,7 +1380,6 @@ static apr_status_t conn_pool_cleanup(void *theworker)
     proxy_worker *worker = (proxy_worker *)theworker;
     if (worker->cp->res) {
         worker->cp->pool = NULL;
-        apr_reslist_destroy(worker->cp->res);
     }
     return APR_SUCCESS;
 }