Index: subversion/mod_dav_svn/reports/update.c =================================================================== --- subversion/mod_dav_svn/reports/update.c (revision 1095513) +++ subversion/mod_dav_svn/reports/update.c (working copy) @@ -1317,6 +1317,11 @@ dav_svn__update_report(const dav_resource *resourc /* this will complete the report, and then drive our editor to generate the response to the client. */ serr = svn_repos_finish_report(rbaton, resource->pool); + + /* We're finished with the report baton. Note that so we don't try + to abort this report later. */ + rbaton = NULL; + if (serr) { derr = dav_svn__convert_err(serr, HTTP_INTERNAL_SERVER_ERROR, @@ -1326,10 +1331,6 @@ dav_svn__update_report(const dav_resource *resourc goto cleanup; } - /* We're finished with the report baton. Note that so we don't try - to abort this report later. */ - rbaton = NULL; - /* ### Temporarily disable resource_walks for single-file switch operations. It isn't strictly necessary. */ if (dst_path && resource_walk)