aboutsummaryrefslogtreecommitdiffstats
path: root/src/svn.cpp
diff options
context:
space:
mode:
authorAnders Kaseorg <andersk@MIT.EDU>2008-12-28 15:27:00 -0500
committerThiago Macieira <thiago@kde.org>2009-01-08 16:58:07 +0100
commitb9ea350139b68667f97e0e7f51af862f22dba6d6 (patch)
tree35b30cc2cc171910fbde02b02c1637104ebd3ed7 /src/svn.cpp
parentfc7b4bccdc719177ec0b4fa135e43ec96403c7b7 (diff)
downloadsvn2git-b9ea350139b68667f97e0e7f51af862f22dba6d6.tar
svn2git-b9ea350139b68667f97e0e7f51af862f22dba6d6.tar.gz
svn2git-b9ea350139b68667f97e0e7f51af862f22dba6d6.tar.bz2
svn2git-b9ea350139b68667f97e0e7f51af862f22dba6d6.tar.xz
svn2git-b9ea350139b68667f97e0e7f51af862f22dba6d6.zip
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 <andersk@mit.edu> Signed-off-by: Thiago Macieira <thiago@kde.org>
Diffstat (limited to 'src/svn.cpp')
-rw-r--r--src/svn.cpp2
1 files changed, 2 insertions, 0 deletions
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');