From b2a805734aeaf12dbf1f040ed71c2c94e960ee9a Mon Sep 17 00:00:00 2001 From: PioLing <964472638@qq.com> Date: Thu, 18 Jan 2024 09:07:16 +0800 Subject: [PATCH] Remove the variable capture of "fp". --- src/Http/HttpBody.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/HttpBody.cpp b/src/Http/HttpBody.cpp index 100d2170..a406a076 100644 --- a/src/Http/HttpBody.cpp +++ b/src/Http/HttpBody.cpp @@ -159,7 +159,7 @@ static std::shared_ptr getSharedMmap(const string &file_path, int64_t &fil return nullptr; } - std::shared_ptr ret((char *)(addr_), [hfile, hmapping, fp, file_path](char *addr_) { + std::shared_ptr ret((char *)(addr_), [hfile, hmapping, file_path](char *addr_) { mmap_close(hfile, hmapping, addr_); delSharedMmap(file_path, addr_); });