]> andersk Git - svn-all-fast-export.git/commitdiff
Add missing calls to svn_stream_close().
authorAnders Kaseorg <andersk@MIT.EDU>
Sun, 28 Dec 2008 20:27:00 +0000 (15:27 -0500)
committerThiago Macieira <thiago@kde.org>
Thu, 8 Jan 2009 15:58:07 +0000 (16:58 +0100)
---1257098496-5312088-1230496020=:2755svn_stream_copy() does not automatically close its streams.  (Thatfeature will be added in Subversion 1.6’s svn_stream_copy3().)

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Signed-off-by: Thiago Macieira <thiago@kde.org>
src/svn.cpp

index 1e7dcbff40a22408d65731808345e56b04139226..5236579600af2babf06a558823d88e3e927d3bb4 100644 (file)
@@ -271,6 +271,8 @@ static int dumpBlob(Repository::Transaction *txn, svn_fs_root_t *fs_root,
     // open a generic svn_stream_t for the QIODevice
     out_stream = streamForDevice(io, dumppool);
     SVN_ERR(svn_stream_copy(in_stream, out_stream, dumppool));
+    svn_stream_close(out_stream);
+    svn_stream_close(in_stream);
 
     // print an ending newline
     io->putChar('\n');
This page took 0.04408 seconds and 5 git commands to generate.