Skip to content

Commit 6328b6a

Browse files
committed
Need some context for the iterator! Finally get to use that accessor :) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89866 13f79535-47bb-0310-9956-ffa450edef68
1 parent 172e898 commit 6328b6a

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

modules/cache/mod_file_cache.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,12 @@ static void *create_server_config(apr_pool_t *p, server_rec *s)
165165
static apr_status_t cleanup_file_cache(void *sconfv)
166166
{
167167
a_server_config *sconf = sconfv;
168+
apr_pool_t *p = apr_hash_pool_get(sconf->fileht);
168169
a_file *file;
169170
apr_hash_index_t *hi;
170171

171172
/* Iterate over the file hash table and clean up each entry */
172-
for (hi = apr_hash_first(sconf->fileht); hi; hi=apr_hash_next(hi)) {
173+
for (hi = apr_hash_first(p, sconf->fileht); hi; hi=apr_hash_next(hi)) {
173174
apr_hash_this(hi, NULL, NULL, (void **)&file);
174175
#if APR_HAS_MMAP
175176
if (file->is_mmapped) {

modules/dav/main/liveprop.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ int dav_get_liveprop_ns_count(void)
103103

104104
void dav_add_all_liveprop_xmlns(apr_pool_t *p, ap_text_header *phdr)
105105
{
106-
apr_hash_index_t *idx = apr_hash_first(dav_liveprop_uris);
106+
apr_hash_index_t *idx = apr_hash_first(p, dav_liveprop_uris);
107107

108108
for ( ; idx != NULL; idx = apr_hash_next(idx) ) {
109109
const void *key;

modules/http/mod_mime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ static void overlay_extension_mappings(apr_pool_t *p,
169169
apr_hash_t *overlay, apr_hash_t *base)
170170
{
171171
apr_hash_index_t *index;
172-
for (index = apr_hash_first(overlay); index;
172+
for (index = apr_hash_first(p, overlay); index;
173173
index = apr_hash_next(index)) {
174174
char *key;
175175
apr_ssize_t klen;

0 commit comments

Comments
 (0)