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:
xie xingguo 2016-11-10 18:38:15 +08:00
parent 37f3897c55
commit 18219d17b2

View File

@ -624,7 +624,6 @@ public:
}
void clear() {
extent_map.clear();
extent_map.clear_and_dispose([&](Extent *e) { delete e; });
shards.clear();
inline_bl.clear();