Index: subversion/mod_dav_svn/repos.c =================================================================== --- subversion/mod_dav_svn/repos.c (revision 1721415) +++ subversion/mod_dav_svn/repos.c (working copy) @@ -4335,6 +4335,9 @@ do_walk(walker_ctx_t *ctx, and this is the invocation for the collection. Alternatively, this is the first [and only] entry to do_walk() for a member resource, so this will be the invocation for the member. */ + ctx->wres.pool = scratch_pool; + ctx->res.pool = scratch_pool; + err = (*params->func)(&ctx->wres, isdir ? DAV_CALLTYPE_COLLECTION : DAV_CALLTYPE_MEMBER); if (err != NULL) @@ -4445,6 +4448,9 @@ do_walk(walker_ctx_t *ctx, if (dirent->kind == svn_node_file) { + ctx->wres.pool = iterpool; + ctx->res.pool = iterpool; + err = (*params->func)(&ctx->wres, DAV_CALLTYPE_MEMBER); if (err != NULL) {