subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1661413 - /subversion/branches/fsx-1.10/subversion/libsvn_fs_x/tree.c
Date Sat, 21 Feb 2015 17:48:18 GMT
Author: stefan2
Date: Sat Feb 21 17:48:18 2015
New Revision: 1661413

URL: http://svn.apache.org/r1661413
Log:
On the fsx-1.10 branch:

* subversion/libsvn_fs_x/tree.c
  (x_node_prop): Only allocate the result string in the user-provided
                 pool and put everything else into the SCRATCH_POOL. 

Modified:
    subversion/branches/fsx-1.10/subversion/libsvn_fs_x/tree.c

Modified: subversion/branches/fsx-1.10/subversion/libsvn_fs_x/tree.c
URL: http://svn.apache.org/viewvc/subversion/branches/fsx-1.10/subversion/libsvn_fs_x/tree.c?rev=1661413&r1=1661412&r2=1661413&view=diff
==============================================================================
--- subversion/branches/fsx-1.10/subversion/libsvn_fs_x/tree.c (original)
+++ subversion/branches/fsx-1.10/subversion/libsvn_fs_x/tree.c Sat Feb 21 17:48:18 2015
@@ -443,11 +443,12 @@ x_node_prop(svn_string_t **value_p,
   apr_hash_t *proplist;
   apr_pool_t *scratch_pool = svn_pool_create(pool);
 
-  SVN_ERR(svn_fs_x__get_dag_node(&node, root, path,  pool));
-  SVN_ERR(svn_fs_x__dag_get_proplist(&proplist, node, pool, scratch_pool));
+  SVN_ERR(svn_fs_x__get_dag_node(&node, root, path, scratch_pool));
+  SVN_ERR(svn_fs_x__dag_get_proplist(&proplist, node, scratch_pool,
+                                     scratch_pool));
   *value_p = NULL;
   if (proplist)
-    *value_p = svn_hash_gets(proplist, propname);
+    *value_p = svn_string_dup(svn_hash_gets(proplist, propname), pool);
 
   svn_pool_destroy(scratch_pool);
   return SVN_NO_ERROR;



Mime
View raw message