subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From phi...@apache.org
Subject svn commit: r1448793 - /subversion/trunk/subversion/libsvn_wc/diff_editor.c
Date Thu, 21 Feb 2013 20:04:12 GMT
Author: philip
Date: Thu Feb 21 20:04:11 2013
New Revision: 1448793

URL: http://svn.apache.org/r1448793
Log:
Avoid using pool memory after clear.

* subversion/libsvn_wc/diff_editor.c
  (close_file): Don't use baton after it has been destroyed.

Modified:
    subversion/trunk/subversion/libsvn_wc/diff_editor.c

Modified: subversion/trunk/subversion/libsvn_wc/diff_editor.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/diff_editor.c?rev=1448793&r1=1448792&r2=1448793&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/diff_editor.c (original)
+++ subversion/trunk/subversion/libsvn_wc/diff_editor.c Thu Feb 21 20:04:11 2013
@@ -2158,8 +2158,8 @@ close_file(void *file_baton,
   if (!eb->local_before_remote && !fb->repos_only && !fb->ignoring_ancestry)
     SVN_ERR(handle_local_only(pb, fb->name, scratch_pool));
 
-  svn_pool_destroy(fb->pool); /* destroys scratch_pool */
-  SVN_ERR(maybe_done(fb->parent_baton));
+  svn_pool_destroy(fb->pool); /* destroys scratch_pool and fb */
+  SVN_ERR(maybe_done(pb));
   return SVN_NO_ERROR;
 }
 



Mime
View raw message