memory leak pointed out by jorton
(original patch to be committed shortly)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@943648
13f79535-47bb-0310-9956-
ffa450edef68
processing is completed, avoiding orphaned callback pointers.
[Brett Gervasoni <brettg senseofsecurity.com>, Jeff Trawick]
- *) prefork MPM: Run cleanups for final request when process exits gracefully.
- PR 43857. [Tom Donovan, Jeff Trawick]
-
*) ab: fix number of requests sent by ab when keepalive is enabled. PR 48497.
[Bryn Dole <dole blekko.com>]
conn_rec *current_conn;
void *csd;
+ /*
+ * (Re)initialize this child to a pre-connection state.
+ */
+
+ apr_pool_clear(ptrans);
+
if ((ap_max_requests_per_child > 0
&& requests_this_child++ >= ap_max_requests_per_child)) {
clean_child_exit(0);
ap_lingering_close(current_conn);
}
- /*
- * (Re)initialize this child to a pre-connection state.
- */
-
- apr_pool_clear(ptrans);
-
/* Check the pod and the generation number after processing a
* connection so that we'll go away if a graceful restart occurred
* while we were processing the connection or we are the lucky