From 35b3deeb587437396ce42b54dae5bbbb225b74b7 Mon Sep 17 00:00:00 2001 From: Alexey Edelev Date: Tue, 5 Sep 2023 12:09:47 +0200 Subject: [PATCH] syncqt: Add the missing file stream close calls Call close explicitly to avoid any issues related to non-closed file descriptors. Pick-to: 6.5 Change-Id: I02df30032dc04afd5d135d707eff4a6efe6a3ea5 Reviewed-by: Amir Masoud Abdol (cherry picked from commit e9ca247479206b3d6f3815c599a244d9bfbae394) Reviewed-by: Qt Cherry-pick Bot --- src/tools/syncqt/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tools/syncqt/main.cpp b/src/tools/syncqt/main.cpp index 3182228faa8..4471bcbc777 100644 --- a/src/tools/syncqt/main.cpp +++ b/src/tools/syncqt/main.cpp @@ -412,6 +412,7 @@ private: if (!parseArgument(argFromFile)) return false; } + ifs.close(); continue; } @@ -1326,6 +1327,7 @@ public: } } } + input.close(); // Error out if namespace checks are failed. if (!(skipChecks & NamespaceChecks)) {