Author: julianfoad
Date: Wed Oct 12 20:11:28 2011
New Revision: 1182566

URL: http://svn.apache.org/viewvc?rev=1182566&view=rev
Log:
On the 'tree-read-api' branch:

* subversion/libsvn_client/tree.c
  (wc_tree_get_dir): Allocate results in the result pool not the scratch pool.

Found by: gstein

Modified:
    subversion/branches/tree-read-api/subversion/libsvn_client/tree.c

Modified: subversion/branches/tree-read-api/subversion/libsvn_client/tree.c
URL: 
http://svn.apache.org/viewvc/subversion/branches/tree-read-api/subversion/libsvn_client/tree.c?rev=1182566&r1=1182565&r2=1182566&view=diff
==============================================================================
--- subversion/branches/tree-read-api/subversion/libsvn_client/tree.c (original)
+++ subversion/branches/tree-read-api/subversion/libsvn_client/tree.c Wed Oct 
12 20:11:28 2011
@@ -332,7 +332,7 @@ wc_tree_get_dir(svn_client_tree_t *tree,
       for (i = 0; i < children->nelts; i++)
         {
           const char *child_abspath = APR_ARRAY_IDX(children, i, const char *);
-          const char *name = svn_dirent_basename(child_abspath, scratch_pool);
+          const char *name = svn_dirent_basename(child_abspath, result_pool);
 
           apr_hash_set(*dirents, name, APR_HASH_KEY_STRING, name);
         }


Reply via email to