subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gst...@apache.org
Subject svn commit: r1334140 - /subversion/trunk/subversion/libsvn_delta/editor.c
Date Fri, 04 May 2012 19:49:32 GMT
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);
 }
 



Mime
View raw message