androiddeplyqt: fix missing pclose() on early return

Found by Coverity.

Amends 5bb178c479a247720fbc3fbb7f06a32b725193ac.

Pick-to: 6.6 6.5 6.2 5.15
Coverity-Id: 378357
Change-Id: I8839280ce15d8e7d9e1f4024ca796c2d8b4ed930
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
(cherry picked from commit c64b30129d7c6c7f99b6abc3f42d32fb61e27f76)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Marc Mutz 2024-03-28 10:11:07 +01:00 committed by Qt Cherry-pick Bot
parent 5b3143fce6
commit 950123bfbc

View File

@ -2035,6 +2035,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 {};
}
}