Remove the variable capture of "fp".

This commit is contained in:
PioLing 2024-01-18 09:07:16 +08:00 committed by GitHub
parent 3dd67b402b
commit b2a805734a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ static std::shared_ptr<char> getSharedMmap(const string &file_path, int64_t &fil
return nullptr;
}
std::shared_ptr<char> ret((char *)(addr_), [hfile, hmapping, fp, file_path](char *addr_) {
std::shared_ptr<char> ret((char *)(addr_), [hfile, hmapping, file_path](char *addr_) {
mmap_close(hfile, hmapping, addr_);
delSharedMmap(file_path, addr_);
});