Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: (qmail 7110 invoked from network); 11 Oct 2010 14:41:12 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 Oct 2010 14:41:12 -0000 Received: (qmail 9981 invoked by uid 500); 11 Oct 2010 14:41:12 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 9787 invoked by uid 500); 11 Oct 2010 14:41:10 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 9777 invoked by uid 99); 11 Oct 2010 14:41:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Oct 2010 14:41:10 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of martin.townsend@power-oasis.com designates 83.223.107.180 as permitted sender) Received: from [83.223.107.180] (HELO geode.123-dns.net) (83.223.107.180) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Oct 2010 14:41:04 +0000 Received: from host81-130-44-65.in-addr.btopenworld.com ([81.130.44.65] helo=[192.168.1.43]) by geode.123-dns.net with esmtp (Exim 4.69) (envelope-from ) id 1P5JYR-0007a4-2O for modules-dev@httpd.apache.org; Mon, 11 Oct 2010 15:40:43 +0100 Message-ID: <4CB321E7.1000309@power-oasis.com> Date: Mon, 11 Oct 2010 15:40:39 +0100 From: Martin Townsend Organization: Power Oasis User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.9) Gecko/20100915 Lightning/1.0b2 Thunderbird/3.1.4 MIME-Version: 1.0 To: modules-dev@httpd.apache.org Subject: Re: Memory Pool References: <4CB31BAA.7080904@power-oasis.com> In-Reply-To: Content-Type: multipart/alternative; boundary="------------040607010707060005010301" X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - geode.123-dns.net X-AntiAbuse: Original Domain - httpd.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - power-oasis.com --------------040607010707060005010301 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 11/10/2010 15:36, Ben Noordhuis wrote: > On Mon, Oct 11, 2010 at 16:14, Martin Townsend > wrote: >> I have created a pool from the child pool for storing warning messages that >> can live across requests, the final request will insert the warnings into >> the response. How do I ensure that this pool is cleared at the end of the >> final request? > By calling apr_pool_clear() or apr_pool_destroy()? > > > ----- > No virus found in this message. > Checked by AVG - www.avg.com > Version: 10.0.1120 / Virus Database: 422/3189 - Release Date: 10/10/10 > Thanks for the response, the problem I have is where do I call apr_pool_clear(), if I call it from the output filter then the warnings will be freed before they are sent in the response. Is there a hook that I could use, or should I set a flag and then use a hook like fix-ups that will check this flag and then call apr_pool_clear()? -- Martin Townsend Power*Oasis* Suite 1, Unit 41 Shrivenham Hundred Business Park Majors Road Watchfield Swindon Wilts SN6 8TZ Mobile: 07884 444658 Skype: mtownsend1973 --------------040607010707060005010301--