From 2e9c610931b4e0a6bab25b1fe5dbd0def45ee126 Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Sun, 9 Jan 2011 03:39:08 +0000 Subject: Fix memory leak in Python runtime integration. Reduce memory consumption of debug trace functions. Add trace points to help track the lifecycle of some of the runtime context objects. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1056880 13f79535-47bb-0310-9956-ffa450edef68 --- sca-cpp/trunk/modules/server/mod-wiring.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sca-cpp/trunk/modules/server/mod-wiring.cpp') diff --git a/sca-cpp/trunk/modules/server/mod-wiring.cpp b/sca-cpp/trunk/modules/server/mod-wiring.cpp index 0ab61f5af8..b63cd3fb37 100644 --- a/sca-cpp/trunk/modules/server/mod-wiring.cpp +++ b/sca-cpp/trunk/modules/server/mod-wiring.cpp @@ -310,8 +310,10 @@ int translate(request_rec *r) { if (!strncmp(r->uri, "/components/", 12)) return DECLINED; - // Get the server configuration + // Create a scoped memory pool gc_scoped_pool pool(r->pool); + + // Get the server configuration const ServerConf& sc = httpd::serverConf(r, &mod_tuscany_wiring); // Process dynamic virtual host configuration @@ -346,8 +348,10 @@ int handler(request_rec *r) { if (r->status == HTTP_MOVED_TEMPORARILY) return OK; - // Do an internal redirect + // Create a scoped memory pool gc_scoped_pool pool(r->pool); + + // Do an internal redirect httpdDebugRequest(r, "modwiring::handler::input"); debug(r->uri, "modwiring::handler::uri"); -- cgit v1.2.3