You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by gs...@apache.org on 2012/05/04 21:49:32 UTC
svn commit: r1334140 - /subversion/trunk/subversion/libsvn_delta/editor.c
Author: gstein
Date: Fri May 4 19:49:32 2012
New Revision: 1334140
URL: http://svn.apache.org/viewvc?rev=1334140&view=rev
Log:
Fix a pool lifetime bug.
* subversion/libsvn_delta/editor.c:
(mark_parent_stable): dup the hash key into a good pool
Modified:
subversion/trunk/subversion/libsvn_delta/editor.c
Modified: subversion/trunk/subversion/libsvn_delta/editor.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_delta/editor.c?rev=1334140&r1=1334139&r2=1334140&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_delta/editor.c (original)
+++ subversion/trunk/subversion/libsvn_delta/editor.c Fri May 4 19:49:32 2012
@@ -217,7 +217,8 @@ mark_parent_stable(const svn_editor_t *e
SVN_ERR_ASSERT_NO_RETURN(marker != MARKER_ALLOW_ADD);
/* MARKER is NULL. Upgrade it to MARKER_ALLOW_ALTER. */
- apr_hash_set(editor->completed_nodes, parent, APR_HASH_KEY_STRING,
+ apr_hash_set(editor->completed_nodes,
+ apr_pstrdup(editor->result_pool, parent), APR_HASH_KEY_STRING,
MARKER_ALLOW_ALTER);
}