Commit 2bbd9efd authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

fwupd: don't leak tmp files

parent a5dbd25b
......@@ -431,6 +431,7 @@ void FwupdBackend::refreshRemote(FwupdRemote* remote, uint cacheAge)
const QByteArray oldHash = getChecksum(filenameSig, hashAlgorithm);
if (oldHash == hash) {
qDebug() << "remote hasn't changed:" << fwupd_remote_get_id(remote);
QFile::remove(filenameSigTmp);
return;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment