/[Apache-SVN]
ViewVC logotype

Revision 1662222


Jump to revision: Previous Next
Author: ivan
Date: Wed Feb 25 14:23:00 2015 UTC (9 years, 2 months ago)
Changed paths: 3
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.


Changed paths

Path Details
Directorysubversion/branches/reuse-ra-session/subversion/include/private/svn_ra_private.h modified , text changed
Directorysubversion/branches/reuse-ra-session/subversion/libsvn_client/ra_cache.c modified , text changed
Directorysubversion/branches/reuse-ra-session/subversion/libsvn_ra/ra_loader.c modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26