You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ko...@apache.org on 2021/02/23 17:08:35 UTC

svn commit: r1886845 - /subversion/trunk/subversion/libsvn_wc/working_file_writer.c

Author: kotkov
Date: Tue Feb 23 17:08:35 2021
New Revision: 1886845

URL: http://svn.apache.org/viewvc?rev=1886845&view=rev
Log:
* subversion/libsvn_wc/working_file_writer.c
  (svn_wc__working_file_writer_close): Kill the pool cleanup handler if the
   caller has closed the writer explicitly — no reason to keep the handler
   in the cleanup list if it's no-op.

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

Modified: subversion/trunk/subversion/libsvn_wc/working_file_writer.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/working_file_writer.c?rev=1886845&r1=1886844&r2=1886845&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/working_file_writer.c (original)
+++ subversion/trunk/subversion/libsvn_wc/working_file_writer.c Tue Feb 23 17:08:35 2021
@@ -187,6 +187,7 @@ svn_wc__working_file_writer_close(svn_wc
       /* Do not retry deleting if it fails, as the stream may already
          be in an invalid state. */
       writer->install_stream = NULL;
+      apr_pool_cleanup_kill(writer->pool, writer, cleanup_file_writer);
       SVN_ERR(svn_stream__install_delete(stream, writer->pool));
     }