From e9ca247479206b3d6f3815c599a244d9bfbae394 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 6.6 Change-Id: I02df30032dc04afd5d135d707eff4a6efe6a3ea5 Reviewed-by: Amir Masoud Abdol --- 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 ee19820da3..2d4d997ae0 100644 --- a/src/tools/syncqt/main.cpp +++ b/src/tools/syncqt/main.cpp @@ -445,6 +445,7 @@ private: if (!parseArgument(argFromFile)) return false; } + ifs.close(); continue; } @@ -1375,6 +1376,7 @@ public: } } } + input.close(); // Error out if namespace checks are failed. if (!(skipChecks & NamespaceChecks)) {