Tuesday, June 21, 2005 at 10:39:39 PM, Jeff typed: JT> On 6/21/05, Steve doh <[EMAIL PROTECTED]> wrote: >> I have a heavily used linked list of memory objects allocated using >> apr_pcalloc(). JT> ... >> How do I free the memory for a single object in this list after it has been >> unlinked from the list?
JT> you can't Something like this may be a workable solution ... . have your list data structure store the objects that have been unlinked from the list . when you need a new object, use one of the previously unlinked objects . only allocate a new abject if no unlinked ones are available. At least this way the memory used by your list would be bounded. Cheers, David
