You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by da...@apache.org on 2011/07/29 09:36:35 UTC

svn commit: r1152129 - /subversion/trunk/subversion/libsvn_subr/svn_cache_config.c

Author: danielsh
Date: Fri Jul 29 07:36:34 2011
New Revision: 1152129

URL: http://svn.apache.org/viewvc?rev=1152129&view=rev
Log:
Plug a memory leak.

* subversion/libsvn_subr/svn_cache_config.c
  (svn_cache__get_global_membuffer_cache):
    Set the allocator's owner so that it is freed.

Review by: rhuijben

Modified:
    subversion/trunk/subversion/libsvn_subr/svn_cache_config.c

Modified: subversion/trunk/subversion/libsvn_subr/svn_cache_config.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/svn_cache_config.c?rev=1152129&r1=1152128&r2=1152129&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/svn_cache_config.c (original)
+++ subversion/trunk/subversion/libsvn_subr/svn_cache_config.c Fri Jul 29 07:36:34 2011
@@ -113,6 +113,7 @@ svn_cache__get_global_membuffer_cache(vo
       apr_pool_create_ex(&pool, NULL, NULL, allocator);
       if (pool == NULL)
         return NULL;
+      apr_allocator_owner_set(allocator, pool);
 
       err = svn_cache__membuffer_cache_create(
           &new_cache,