mirror of
https://github.com/ceph/ceph
synced 2024-12-29 15:03:33 +00:00
os/bluestore: fix potential memory leak
Call to extent_map.clear_and_dispose() will be noop after extent_map.clear() hence causing memory leak. Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
This commit is contained in:
parent
37f3897c55
commit
18219d17b2
@ -624,7 +624,6 @@ public:
|
||||
}
|
||||
|
||||
void clear() {
|
||||
extent_map.clear();
|
||||
extent_map.clear_and_dispose([&](Extent *e) { delete e; });
|
||||
shards.clear();
|
||||
inline_bl.clear();
|
||||
|
Loading…
Reference in New Issue
Block a user