Skip to content

Fix use-of-uninitialized error in TCP.h (backport #43492)#72376

Open
mergify[bot] wants to merge 1 commit into
v1.5-branchfrom
mergify/bp/v1.5-branch/pr-43492
Open

Fix use-of-uninitialized error in TCP.h (backport #43492)#72376
mergify[bot] wants to merge 1 commit into
v1.5-branchfrom
mergify/bp/v1.5-branch/pr-43492

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify Bot commented Jun 3, 2026

Summary

mConnectionsBuffer cannot be accessed by TCPBase during destruction since the derived class is destroyed first.
Move the Close call from TCPBase to TCP destructor to avoid such accesses.

Related issues

Fixes: #43489

Testing

Ran tests with memory sanitizer build.

Readability checklist

The checklist below will help the reviewer finish PR review in time and keep the
code readable:

  • PR title is
    descriptive
  • Apply the
    “When in Rome…”
    rule (coding style)
  • PR size is short
  • Try to avoid "squashing" and "force-update" in commit history
  • CI time didn't increase

See: Pull Request Guidelines


This is an automatic backport of pull request #43492 done by [Mergify](https://mergify.com).

`mConnectionsBuffer` cannot be accessed by TCPBase during destruction
since the derived class is destroyed first.

(cherry picked from commit 51cc1ed)
@mergify mergify Bot added the backport-v1.5-branch Backport PR targeting v1.5-branch, created by Mergify label Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-v1.5-branch Backport PR targeting v1.5-branch, created by Mergify transport

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant