summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
authorAlexey Edelev <alexey.edelev@qt.io>2023-09-05 12:09:47 +0200
committerAlexey Edelev <alexey.edelev@qt.io>2023-09-12 16:33:24 +0200
commite9ca247479206b3d6f3815c599a244d9bfbae394 (patch)
treea91919d136ce4f92f095fe7470ca71870ed95495 /src/tools
parent7164cce881c3d65eb18749471ba5e358c7d5998a (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 6.6 Change-Id: I02df30032dc04afd5d135d707eff4a6efe6a3ea5 Reviewed-by: Amir Masoud Abdol <amir.abdol@qt.io>
Diffstat (limited to 'src/tools')
-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 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)) {