apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@gmail.com>
Subject Re: Freeing individual memory allocations allocated by apr_pcalloc()
Date Tue, 21 Jun 2005 13:09:39 GMT
On 6/21/05, Steve doh <tfif@hotmail.com> wrote:
> I have a heavily used linked list of memory objects allocated using
> apr_pcalloc().
...
> How do I free the memory for a single object in this list after it has been
> unlinked from the list?

you can't

> 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?

APR pools may not be a match for the type of memory management that
this data structure requires.

Mime
View raw message