Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 52643 invoked from network); 21 Jun 2005 05:27:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Jun 2005 05:27:29 -0000 Received: (qmail 88820 invoked by uid 500); 21 Jun 2005 05:27:26 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 88789 invoked by uid 500); 21 Jun 2005 05:27:26 -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 88776 invoked by uid 99); 21 Jun 2005 05:27:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jun 2005 22:27:26 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=MSGID_FROM_MTA_HEADER X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of tfif@hotmail.com designates 64.4.35.30 as permitted sender) Received: from [64.4.35.30] (HELO hotmail.com) (64.4.35.30) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jun 2005 22:27:27 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 20 Jun 2005 22:27:25 -0700 Message-ID: Received: from 222.152.136.31 by by12fd.bay12.hotmail.msn.com with HTTP; Tue, 21 Jun 2005 05:27:25 GMT X-Originating-IP: [222.152.136.31] X-Originating-Email: [tfif@hotmail.com] X-Sender: tfif@hotmail.com From: "Steve doh" To: dev@apr.apache.org Subject: Freeing individual memory allocations allocated by apr_pcalloc() Date: Tue, 21 Jun 2005 17:27:25 +1200 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 21 Jun 2005 05:27:25.0515 (UTC) FILETIME=[E86971B0:01C57621] X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, I have a heavily used linked list of memory objects allocated using apr_pcalloc(). I have created a specific apr_pool just for this list. How do I free the memory for a single object in this list after it has been unlinked from the list? I would normally use the apr_pool_destroy() function but this would wipe out the whole linked list. I can see that not freeing the unlinked objects will cause memory problems after the program has been running for a while. What am I missing? Thanks for you help Regards Steve _________________________________________________________________ Become a fitness fanatic @ http://xtramsn.co.nz/health