On Wed, May 09, 2001 at 02:45:34PM -0400, Christian Gross wrote:
> Hi
>
> I was experimenting with some code...
>
> Consider the following.
>
> apr_initialize();
> if (apr_pool_create(&context, NULL) != APR_SUCCESS) {
> printf( "Could not allocate context\n");
> exit( -1);
> }
> apr_terminate();
>
> If I "forget" to destroy the context pool I think the pool is lost. I
> looked into the sources and I cannot seem where the context pool is
> freed.
Yes. I mentioned this last week regarding global pools -- they were
all under a single global pool in 1.3. I will fix it by having
apr_initialize and apr_terminate pass the global pool as a parameter
and then force all of the other pools to be subsidiary.
....Roy