subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danie...@apache.org
Subject svn commit: r1152129 - /subversion/trunk/subversion/libsvn_subr/svn_cache_config.c
Date Fri, 29 Jul 2011 07:36:35 GMT
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,



Mime
View raw message