You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2014/12/30 16:16:34 UTC
svn commit: r1648538 - /subversion/trunk/subversion/libsvn_fs_fs/tree.c
Author: stefan2
Date: Tue Dec 30 15:16:34 2014
New Revision: 1648538
URL: http://svn.apache.org/r1648538
Log:
Follow-up to r1648537: Make sure all callers of dag_node_cache_get
ultimately return nodes allocated in their respective result pools.
* subversion/libsvn_fs_fs/tree.c
(get_dag): Auto-copy the DAG node before returning it.
Modified:
subversion/trunk/subversion/libsvn_fs_fs/tree.c
Modified: subversion/trunk/subversion/libsvn_fs_fs/tree.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_fs/tree.c?rev=1648538&r1=1648537&r2=1648538&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_fs/tree.c (original)
+++ subversion/trunk/subversion/libsvn_fs_fs/tree.c Tue Dec 30 15:16:34 2014
@@ -1378,7 +1378,7 @@ get_dag(dag_node_t **dag_node_p,
}
}
- *dag_node_p = node;
+ *dag_node_p = svn_fs_fs__dag_copy_into_pool(node, pool);
return SVN_NO_ERROR;
}