diff options
author | Marc Mutz <marc.mutz@qt.io> | 2024-03-28 10:11:07 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2024-04-18 10:31:01 +0100 |
commit | c64b30129d7c6c7f99b6abc3f42d32fb61e27f76 (patch) | |
tree | 7a40c4aaf07921a7ac6a3fc0db4a9a1a70a77f86 /src | |
parent | 1cfe42235c4496f68195385507dbaa553d04aee5 (diff) |
androiddeplyqt: fix missing pclose() on early return
Found by Coverity.
Amends 5bb178c479a247720fbc3fbb7f06a32b725193ac.
Pick-to: 6.7 6.6 6.5 6.2 5.15
Coverity-Id: 378357
Change-Id: I8839280ce15d8e7d9e1f4024ca796c2d8b4ed930
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/tools/androiddeployqt/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/androiddeployqt/main.cpp b/src/tools/androiddeployqt/main.cpp index 20030bd3bd..273e818189 100644 --- a/src/tools/androiddeployqt/main.cpp +++ b/src/tools/androiddeployqt/main.cpp @@ -2034,6 +2034,7 @@ QStringList getQtLibsFromElf(const Options &options, const QString &fileName) if (it == elfArchitectures.constEnd() || *it != options.currentArchitecture.toLatin1()) { if (options.verbose) fprintf(stdout, "Skipping \"%s\", architecture mismatch\n", qPrintable(fileName)); + pclose(readElfCommand); return {}; } } |