common/FileUtil.cpp | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit cbe71ca126240311dd5871c4885df9b34ed198f9
Author: Michael Meeks <[email protected]>
AuthorDate: Tue Jun 30 16:40:53 2020 +0100
Commit: Aron Budea <[email protected]>
CommitDate: Wed Jul 1 00:05:15 2020 +0200
Close files after copying, to avoid fd leak during convert-to.
Change-Id: I24a9726bfea7805aff61d778e9f8f91c5b1ffd52
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/97501
Tested-by: Aron Budea <[email protected]>
Reviewed-by: Aron Budea <[email protected]>
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 (...)
{
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits