From: Anders Kaseorg Date: Sun, 28 Dec 2008 20:27:00 +0000 (-0500) Subject: Add missing calls to svn_stream_close(). X-Git-Url: http://andersk.mit.edu/gitweb/svn-all-fast-export.git/commitdiff_plain/b9ea350139b68667f97e0e7f51af862f22dba6d6 Add missing calls to svn_stream_close(). ---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 Signed-off-by: Thiago Macieira --- diff --git a/src/svn.cpp b/src/svn.cpp index 1e7dcbf..5236579 100644 --- a/src/svn.cpp +++ b/src/svn.cpp @@ -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');