From dev-return-16047-apmail-apr-dev-archive=apr.apache.org@apr.apache.org Mon Apr 17 10:36:28 2006 Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 68890 invoked from network); 17 Apr 2006 10:36:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Apr 2006 10:36:27 -0000 Received: (qmail 23916 invoked by uid 500); 17 Apr 2006 10:36:25 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 23871 invoked by uid 500); 17 Apr 2006 10:36:25 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 23860 invoked by uid 99); 17 Apr 2006 10:36:25 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Apr 2006 03:36:25 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [151.189.21.47] (HELO mail-in-07.arcor-online.net) (151.189.21.47) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Apr 2006 03:36:24 -0700 Received: from mail-in-05-z2.arcor-online.net (mail-in-10-z2.arcor-online.net [151.189.8.27]) by mail-in-07.arcor-online.net (Postfix) with ESMTP id BCD0F148DDF for ; Mon, 17 Apr 2006 12:36:02 +0200 (CEST) Received: from mail-in-04.arcor-online.net (mail-in-04.arcor-online.net [151.189.21.44]) by mail-in-05-z2.arcor-online.net (Postfix) with ESMTP id B0ACC1CB550 for ; Mon, 17 Apr 2006 12:36:02 +0200 (CEST) Received: from [192.168.1.113] (dslb-084-056-230-048.pools.arcor-ip.net [84.56.230.48]) by mail-in-04.arcor-online.net (Postfix) with ESMTP id 84BF71108D6 for ; Mon, 17 Apr 2006 12:36:02 +0200 (CEST) Message-ID: <44436F1F.4010002@apache.org> Date: Mon, 17 Apr 2006 12:34:07 +0200 From: Andreas Fester User-Agent: Mail/News 1.5 (X11/20060318) MIME-Version: 1.0 To: APR Development List Subject: Memory Pool Lifetime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, I have read http://subversion.tigris.org/hacking.html#apr-pools and http://www.apachetutor.org/dev/pools, but one question still remains: when is it safe to destroy memory pools which are passed to APR functions like apr_sockaddr_info_get() ? Is it safe to do something like apr_pool_t *pool; apr_pool_create(&pool, parentPool); apr_sockaddr_info_get(..., pool); apr_pool_destroy(pool); or are there any performance- or other issues with this approach? Thanks & Best Regards, Andreas