You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2003/04/04 20:16:33 UTC
DO NOT REPLY [Bug 11427] -
Possible Memory Leak in CGI script invocation
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11427>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11427
Possible Memory Leak in CGI script invocation
------- Additional Comments From alex@varju.ca 2003-04-04 18:16 -------
I don't know if this is the best solution, but I did manage to resolve this on
our servers with the following change:
Index: server/mpm/winnt/child.c
===================================================================
RCS file: /webct1/cvsroot/external/apache2/server/mpm/winnt/child.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -p -u -r1.4 -r1.5
--- server/mpm/winnt/child.c 1 Apr 2003 22:00:37 -0000 1.4
+++ server/mpm/winnt/child.c 3 Apr 2003 00:06:59 -0000 1.5
@@ -123,6 +123,7 @@ AP_DECLARE(void) mpm_recycle_completion_
if (context) {
apr_pool_clear(context->ptrans);
context->next = NULL;
+ context->ba = apr_bucket_alloc_create(context->ptrans);
ResetEvent(context->Overlapped.hEvent);
apr_thread_mutex_lock(qlock);
if (qtail) {
@@ -205,7 +206,7 @@ AP_DECLARE(PCOMP_CONTEXT) mpm_get_comple
apr_pool_tag(context->ptrans, "ptrans");
context->accept_socket = INVALID_SOCKET;
- context->ba = apr_bucket_alloc_create(pchild);
+ context->ba = apr_bucket_alloc_create(context->ptrans);
apr_atomic_inc(&num_completion_contexts);
break;
}
@@ -440,7 +441,7 @@ static PCOMP_CONTEXT win9x_get_connectio
context = apr_pcalloc(pchild, sizeof(COMP_CONTEXT));
apr_pool_create(&context->ptrans, pchild);
apr_pool_tag(context->ptrans, "ptrans");
- context->ba = apr_bucket_alloc_create(pchild);
+ context->ba = apr_bucket_alloc_create(context->ptrans);
}
while (1) {
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org