Log Message: |
On the 'reuse-ra-session' branch: Resolve memory leak.
* subversion/libsvn_client/ra_cache.c
(): Include "svn_pools.h".
(cache_entry_t): Add SESSION_POOL member to have an option to destroy
CACHE_ENTRY structure itself.
(close_ra_session, remove_inactive_entry): Destroy SESSION_POOL
instead of closing RA session -- we have other resources allocated
for RA session, like RA callback baton, cache_entry etc.
(open_new_session): New helper, factored out from
svn_client__ra_cache_open_session().
(svn_client__ra_cache_open_session): Create separate subpool for
each CACHE_ENTRY and destroy it on error.
* subversion/include/private/svn_ra_private.h
* subversion/libsvn_ra/ra_loader.c
(svn_ra__close): Remove -- we do not use it now.
|