Index: subversion/svnadmin/main.c =================================================================== --- subversion/svnadmin/main.c (revision 23397) +++ subversion/svnadmin/main.c (working copy) @@ -1202,6 +1202,7 @@ svn_pool_clear(subpool); } + svn_pool_destroy(subpool); return SVN_NO_ERROR; } Index: subversion/libsvn_wc/update_editor.c =================================================================== --- subversion/libsvn_wc/update_editor.c (revision 23397) +++ subversion/libsvn_wc/update_editor.c (working copy) @@ -2727,6 +2727,7 @@ edit_baton, pool)); + svn_pool_destroy(subpool); return SVN_NO_ERROR; } Index: subversion/svnsync/main.c =================================================================== --- subversion/svnsync/main.c (revision 23397) +++ subversion/svnsync/main.c (working copy) @@ -1128,6 +1128,7 @@ NULL, subpool)); } + svn_pool_destroy(subpool); return SVN_NO_ERROR; } Index: subversion/libsvn_repos/log.c =================================================================== --- subversion/libsvn_repos/log.c (revision 23397) +++ subversion/libsvn_repos/log.c (working copy) @@ -289,6 +289,9 @@ don't fetch any more for this path. */ if (info->history_rev < start) { + svn_pool_destroy(subpool); + if (info->oldpool) + svn_pool_destroy(info->oldpool); info->done = TRUE; return SVN_NO_ERROR; } Index: subversion/libsvn_delta/path_driver.c =================================================================== --- subversion/libsvn_delta/path_driver.c (revision 23397) +++ subversion/libsvn_delta/path_driver.c (working copy) @@ -71,6 +71,7 @@ item->pool = subpool; APR_ARRAY_PUSH(db_stack, dir_stack_t *) = item; + svn_pool_destroy(subpool); return SVN_NO_ERROR; } @@ -144,7 +145,11 @@ /* Do nothing if there are no paths. */ if (! paths->nelts) - return SVN_NO_ERROR; + { + svn_pool_destroy(subpool); + svn_pool_destroy(iterpool); + return SVN_NO_ERROR; + } /* Sort the paths in a depth-first directory-ish order. */ qsort(paths->elts, paths->nelts, paths->elt_size, svn_sort_compare_paths);