Fix user-after-free in HTTP repo code
This commit is contained in:
parent
100e327684
commit
a6bed69d19
@ -1143,11 +1143,12 @@ HTTPRepository::failure() const
|
||||
directories.erase(it);
|
||||
Dir dir(d->absolutePath());
|
||||
bool result = dir.remove(true);
|
||||
delete d;
|
||||
|
||||
// update the hash cache too
|
||||
updatedFileContents(d->absolutePath(), std::string());
|
||||
|
||||
delete d;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user