aboutsummaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
Diffstat (limited to 'src/network')
-rw-r--r--src/network/connection.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/connection.cpp b/src/network/connection.cpp
index 5c529faea..7710b1c42 100644
--- a/src/network/connection.cpp
+++ b/src/network/connection.cpp
@@ -1729,6 +1729,7 @@ void ConnectionSendThread::connect(Address address)
m_connection->SetPeerID(PEER_ID_INEXISTENT);
NetworkPacket* pkt = new NetworkPacket(0,0);
m_connection->Send(PEER_ID_SERVER, 0, pkt, true);
+ delete pkt;
}
void ConnectionSendThread::disconnect()