Unverified Commit 4c81d837 authored by Arthur de Araújo Farias's avatar Arthur de Araújo Farias Committed by GitHub

Merge pull request #4 from arthurafarias/arthurafarias-fix-memory-leak-timer

Fix memory leak in timers unordered map
parents 7b4255ff 2dcb7587
......@@ -85,7 +85,7 @@ Transport::onReady(const Aio::FdSet& fds) {
auto it = timers.find(tag.value());
auto& entry = it->second;
handleTimer(std::move(entry));
timers.erase(it);
timers.erase(it->first);
}
else {
throw std::runtime_error("Unknown fd");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment