mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-08-24 05:30:12 +00:00
Merge pull request #2446 from jpk68/static-analysis-2
chore: fix memory leaks
This commit is contained in:
@@ -166,6 +166,7 @@ namespace client
|
||||
m_CleanupTimer.cancel ();
|
||||
m_PublishConfirmationTimer.cancel ();
|
||||
m_PublishVerificationTimer.cancel ();
|
||||
m_PublishDelayTimer.cancel ();
|
||||
if (m_Pool)
|
||||
{
|
||||
m_Pool->SetLocalDestination (nullptr);
|
||||
|
||||
@@ -170,6 +170,7 @@ namespace transport
|
||||
header.h.flags[2] = 0; // flag
|
||||
memcpy (h, header.buf, 16);
|
||||
htobuf64 (h + 16, GetSourceConnID ()); // source id
|
||||
memset (h + 24, 0, 8); // header token
|
||||
// payload
|
||||
payload[0] = eSSU2BlkDateTime;
|
||||
htobe16buf (payload + 1, 4);
|
||||
|
||||
Reference in New Issue
Block a user