Julian Foad <julianfoad@btopenworld.com> writes:
> + subversion/libsvn_client/commit.c (svn_client_import):
> The patch adds a 'destroy' at the end of the function. Does that
> invalidate 'commit_info' which seems to be allocated in the subpool
> and then returned to the caller? An import seems to work OK, and
> passes 'make check', even if I 'clear' just before 'destroy', but is
> it right? I think I will remove it from the patch if I don't find out
> for sure that it's safe.
Agreed. Maybe we should just be passing 'pool' instead of 'subpool'
to get_ra_editor(). In the current code, the effect would be the
same, and if we were to change svn_client_import() to destroy the
subpool at the end, I don't see how it could possibly be correct
w.r.t. the allocation of commit_items (at least, tracing the code
through indicates that commit_items are allocated in the explicit
pool, not the session pool or some other sneaky way).
-K
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Jan 31 21:17:38 2005