git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89866
13f79535-47bb-0310-9956-
ffa450edef68
static apr_status_t cleanup_file_cache(void *sconfv)
{
a_server_config *sconf = sconfv;
+ apr_pool_t *p = apr_hash_pool_get(sconf->fileht);
a_file *file;
apr_hash_index_t *hi;
/* Iterate over the file hash table and clean up each entry */
- for (hi = apr_hash_first(sconf->fileht); hi; hi=apr_hash_next(hi)) {
+ for (hi = apr_hash_first(p, sconf->fileht); hi; hi=apr_hash_next(hi)) {
apr_hash_this(hi, NULL, NULL, (void **)&file);
#if APR_HAS_MMAP
if (file->is_mmapped) {
void dav_add_all_liveprop_xmlns(apr_pool_t *p, ap_text_header *phdr)
{
- apr_hash_index_t *idx = apr_hash_first(dav_liveprop_uris);
+ apr_hash_index_t *idx = apr_hash_first(p, dav_liveprop_uris);
for ( ; idx != NULL; idx = apr_hash_next(idx) ) {
const void *key;
apr_hash_t *overlay, apr_hash_t *base)
{
apr_hash_index_t *index;
- for (index = apr_hash_first(overlay); index;
+ for (index = apr_hash_first(p, overlay); index;
index = apr_hash_next(index)) {
char *key;
apr_ssize_t klen;