You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ph...@apache.org on 2012/11/01 11:09:19 UTC

svn commit: r1404529 - /subversion/trunk/subversion/libsvn_repos/fs-wrap.c

Author: philip
Date: Thu Nov  1 10:09:18 2012
New Revision: 1404529

URL: http://svn.apache.org/viewvc?rev=1404529&view=rev
Log:
Fix a memory use bug identified by valgrind.

* subversion/libsvn_repos/fs-wrap.c
  (svn_repos_fs_get_inherited_props): Avoid the iteration pool for
   an object used across iterations.

Modified:
    subversion/trunk/subversion/libsvn_repos/fs-wrap.c

Modified: subversion/trunk/subversion/libsvn_repos/fs-wrap.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_repos/fs-wrap.c?rev=1404529&r1=1404528&r2=1404529&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_repos/fs-wrap.c (original)
+++ subversion/trunk/subversion/libsvn_repos/fs-wrap.c Thu Nov  1 10:09:18 2012
@@ -760,7 +760,7 @@ svn_repos_fs_get_inherited_props(apr_arr
       apr_hash_t *parent_properties;
 
       svn_pool_clear(iterpool);
-      parent_path = svn_fspath__dirname(parent_path, iterpool);
+      parent_path = svn_fspath__dirname(parent_path, scratch_pool);
 
       if (authz_read_func)
         SVN_ERR(authz_read_func(&allowed, root, parent_path,