diff options
author | gstein <gstein@13f79535-47bb-0310-9956-ffa450edef68> | 2000-05-22 05:59:05 +0000 |
---|---|---|
committer | gstein <gstein@13f79535-47bb-0310-9956-ffa450edef68> | 2000-05-22 05:59:05 +0000 |
commit | 5d2b23b5449240e7f41c364dbe800de5b42ee5eb (patch) | |
tree | ba770d1293b8ed7fcae8c8f4e784518c25117228 /memory | |
parent | b1c455748c670eb58b50474eaf93d3e2e5cbbe1c (diff) | |
download | libapr-5d2b23b5449240e7f41c364dbe800de5b42ee5eb.tar.gz |
pool->prog_data structures are allocated from within the pool. make sure to
clear them out when the pool is cleared.
Submitted by: Tim Costello
Reviewed by: Greg Stein
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60078 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'memory')
-rw-r--r-- | memory/unix/apr_pools.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/memory/unix/apr_pools.c b/memory/unix/apr_pools.c index 2822c6c4e..488af83bf 100644 --- a/memory/unix/apr_pools.c +++ b/memory/unix/apr_pools.c @@ -727,6 +727,8 @@ API_EXPORT(void) ap_clear_pool(ap_pool_t *a) free_blocks(a->first->h.next); a->first->h.next = NULL; + a->prog_data = NULL; + a->last = a->first; a->first->h.first_avail = a->free_first_avail; debug_fill(a->first->h.first_avail, |