kfogel@collab.net writes:
> > Index: subversion/libsvn_client/delete.c
> > ===================================================================
> > --- subversion/libsvn_client/delete.c (revision 13016)
> > +++ subversion/libsvn_client/delete.c (working copy)
> > @@ -124,6 +124,7 @@
> > svn_error_t *err;
> > const char *common;
> > int i;
> > + apr_pool_t *subpool = svn_pool_create (pool);
> >
> > /* Condense our list of deletion targets. */
> > SVN_ERR (svn_path_condense_targets (&common, &targets, paths, TRUE, pool));
> > @@ -170,16 +171,17 @@
> > for (i = 0; i < targets->nelts; i++)
> > {
> > const char *path = APR_ARRAY_IDX (targets, i, const char *);
> > + svn_pool_clear (subpool);
> > path = svn_path_uri_decode (path, pool);
> > APR_ARRAY_IDX (targets, i, const char *) = path;
> > SVN_ERR (svn_ra_check_path (ra_session, path, SVN_INVALID_REVNUM,
> > - &kind, pool));
> > + &kind, subpool));
> > if (kind == svn_node_none)
> > return svn_error_createf (SVN_ERR_FS_NOT_FOUND, NULL,
> > "URL '%s' does not exist",
> > svn_path_local_style (path, pool));
> > }
> > -
> > + svn_pool_destroy (subpool);
> > /* Fetch RA commit editor */
> > SVN_ERR (svn_client__commit_get_baton (&commit_baton, commit_info, pool));
> > SVN_ERR (svn_ra_get_commit_editor (ra_session, &editor, &edit_baton,
>
> Why not use the same subpool in the svn_path_uri_decode() call too?
Daniel answered my question in IRC: because path is saved in the
targets array, thus used later outside the loop.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Feb 15 01:37:53 2005