[Libreoffice-commits] online.git: common/FileUtil.cpp
Michael Meeks (via logerrit)
logerrit at kemper.freedesktop.org
Tue Jun 30 16:24:36 UTC 2020
common/FileUtil.cpp | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 582139eb998432539d79427f22de0eadb25b5ab7
Author: Michael Meeks <michael.meeks at collabora.com>
AuthorDate: Tue Jun 30 16:40:53 2020 +0100
Commit: Michael Meeks <michael.meeks at collabora.com>
CommitDate: Tue Jun 30 18:24:17 2020 +0200
Close files after copying, to avoid fd leak during convert-to.
Change-Id: I24a9726bfea7805aff61d778e9f8f91c5b1ffd52
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/97539
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Michael Meeks <michael.meeks at collabora.com>
diff --git a/common/FileUtil.cpp b/common/FileUtil.cpp
index 793fc1e25..4d8ac0a56 100644
--- a/common/FileUtil.cpp
+++ b/common/FileUtil.cpp
@@ -145,6 +145,8 @@ namespace FileUtil
LOG_WRN("Unusual: file " << anonymizeUrl(fromPath) << " changed size "
"during copy from " << st.st_size << " to " << bytesIn);
}
+ close(from);
+ close(to);
}
catch (...)
{
More information about the Libreoffice-commits
mailing list