subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1538123 - /subversion/trunk/subversion/libsvn_repos/config_pool.c
Date Sat, 02 Nov 2013 01:07:50 GMT
Author: stefan2
Date: Sat Nov  2 01:07:50 2013
New Revision: 1538123

URL: http://svn.apache.org/r1538123
Log:
* subversion/libsvn_repos/config_pool.c
  (svn_repos__config_pool_get): don't leak the pool upon cache hit

Modified:
    subversion/trunk/subversion/libsvn_repos/config_pool.c

Modified: subversion/trunk/subversion/libsvn_repos/config_pool.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_repos/config_pool.c?rev=1538123&r1=1538122&r2=1538123&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_repos/config_pool.c (original)
+++ subversion/trunk/subversion/libsvn_repos/config_pool.c Sat Nov  2 01:07:50 2013
@@ -683,7 +683,10 @@ svn_repos__config_pool_get(svn_config_t 
                                          case_sensitive, pool,
                                          scratch_pool));
       if (*cfg)
-        return SVN_NO_ERROR;
+        {
+          svn_pool_destroy(scratch_pool);
+          return SVN_NO_ERROR;
+        }
 
       /* Read and cache the configuration.  This may fail. */
       err = find_repos_config(cfg, config_pool, path, case_sensitive,



Mime
View raw message