summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Edelev <alexey.edelev@qt.io>2023-09-05 12:09:47 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-09-12 21:40:11 +0000
commit35b3deeb587437396ce42b54dae5bbbb225b74b7 (patch)
treed88652a5da19b2e4d1d672b0fce6f4655d473a74
parent89b36f49436f72d3d5e21e7709a6016e86e1ff27 (diff)
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 <amir.abdol@qt.io> (cherry picked from commit e9ca247479206b3d6f3815c599a244d9bfbae394) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/tools/syncqt/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/syncqt/main.cpp b/src/tools/syncqt/main.cpp
index 3182228faa..4471bcbc77 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)) {