Index: subversion/libsvn_client/update.c
===================================================================
--- subversion/libsvn_client/update.c	(revision 25317)
+++ subversion/libsvn_client/update.c	(working copy)
@@ -253,9 +253,10 @@
   else
     {
       int i;
+      apr_pool_t *subpool = svn_pool_create(pool);
       children_with_mergeinfo = svn_sort__hash(children_with_mergeinfo_hash,
                                                svn_sort_compare_items_as_paths,
-                                               pool);
+                                               subpool);
 
       /* children_with_mergeinfo is sorted in depth first order.
          To minimize svn_client__elide_mergeinfo()'s crawls up the
@@ -268,12 +269,14 @@
           svn_sort__item_t *item = &APR_ARRAY_IDX(children_with_mergeinfo,
                                                   i,
                                                   svn_sort__item_t);
+          apr_pool_clear(subpool);
           child_wcpath = item->key;
           SVN_ERR(svn_wc__entry_versioned(&child_entry, child_wcpath,
-                                          path_adm_access, FALSE, pool));
+                                          path_adm_access, FALSE, subpool));
           SVN_ERR(svn_client__elide_mergeinfo(child_wcpath, NULL, child_entry,
-                                              path_adm_access, ctx, pool));
+                                              path_adm_access, ctx, subpool));
         }
+      apr_pool_destroy(subpool);
     }
 
   SVN_ERR(svn_wc_adm_close(adm_open_depth ? path_adm_access : adm_access));

