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>
This commit is contained in:
Marc Mutz 2024-03-28 10:11:07 +01:00
parent 1cfe42235c
commit c64b30129d

View File

@ -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 {};
}
}