Author: ivan Date: Wed Sep 4 14:13:01 2013 New Revision: 1520028 URL: http://svn.apache.org/r1520028 Log: ra_serf: Improve memory usage in commit processing.
* subversion/libsvn_ra_serf/commit.c (close_file): Use scratch_pool for PROPPATCH request. Modified: subversion/trunk/subversion/libsvn_ra_serf/commit.c Modified: subversion/trunk/subversion/libsvn_ra_serf/commit.c URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_serf/commit.c?rev=1520028&r1=1520027&r2=1520028&view=diff ============================================================================== --- subversion/trunk/subversion/libsvn_ra_serf/commit.c (original) +++ subversion/trunk/subversion/libsvn_ra_serf/commit.c Wed Sep 4 14:13:01 2013 @@ -2168,8 +2168,8 @@ close_file(void *file_baton, { proppatch_context_t *proppatch; - proppatch = apr_pcalloc(ctx->pool, sizeof(*proppatch)); - proppatch->pool = ctx->pool; + proppatch = apr_pcalloc(scratch_pool, sizeof(*proppatch)); + proppatch->pool = scratch_pool; proppatch->relpath = ctx->relpath; proppatch->path = ctx->url; proppatch->commit = ctx->commit; @@ -2177,7 +2177,7 @@ close_file(void *file_baton, proppatch->removed_props = ctx->removed_props; proppatch->base_revision = ctx->base_revision; - SVN_ERR(proppatch_resource(proppatch, ctx->commit, ctx->pool)); + SVN_ERR(proppatch_resource(proppatch, ctx->commit, scratch_pool)); } return SVN_NO_ERROR;