Skip to content

Commit

Permalink
Fix heap-use-after-free for FaceliftUtils (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
zusage committed Oct 26, 2020
1 parent 8f4d2e9 commit 229d7ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/FaceliftUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ class MostRecentlyUsedCache
void remove(const Key &key)
{
auto it = m_map.find(key);
m_map.erase(key);
m_list.erase(it->second);
m_map.erase(key);
}

void clear()
Expand Down

0 comments on commit 229d7ad

Please sign in to comment.