Unverified Commit 7b4255ff authored by Arthur de Araújo Farias's avatar Arthur de Araújo Farias Committed by GitHub

Merge pull request #3 from arthurafarias/arthurafarias-fix-memory-leak-peer

Fixed memory leak in peers
parents afa9c0f5 72acf944
...@@ -185,7 +185,7 @@ Transport::handlePeerDisconnection(const std::shared_ptr<Peer>& peer) { ...@@ -185,7 +185,7 @@ Transport::handlePeerDisconnection(const std::shared_ptr<Peer>& peer) {
} }
#endif /* PISTACHE_USE_SSL */ #endif /* PISTACHE_USE_SSL */
peers.erase(it); peers.erase(it->first);
{ {
// Clean up buffers // Clean up buffers
......
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