Merge pull request #2446 from jpk68/static-analysis-2

chore: fix memory leaks
This commit is contained in:
orignal
2026-07-25 17:38:14 -04:00
committed by GitHub
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -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);
+1
View File
@@ -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);