Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
fix: fix memory leak in meta_state_service_simple (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhao liwei committed Apr 30, 2020
1 parent eca4d32 commit cf0971c
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,13 @@ meta_state_service_simple::~meta_state_service_simple()
{
_tracker.cancel_outstanding_tasks();
file::close(_log);

for (const auto &kv : _quick_map) {
if ("/" != kv.first) {
delete kv.second;
}
}
_quick_map.clear();
}
}
}

0 comments on commit cf0971c

Please sign in to comment.