Skip to content

RDKB-65853 Fixing coverity issue#1248

Open
sshah500 wants to merge 2 commits into
rdkcentral:developfrom
myanaki:coverity_push
Open

RDKB-65853 Fixing coverity issue#1248
sshah500 wants to merge 2 commits into
rdkcentral:developfrom
myanaki:coverity_push

Conversation

@sshah500

@sshah500 sshah500 commented Jul 6, 2026

Copy link
Copy Markdown

Reason for change: Fixing coverity issues.

Test Procedure: Build should be successful and the regression test should also succeed

Risks: Low

Priority: P1

Signed-off-by: Sachinkumar_shah@comcast.com

Reason for change: Fixing coverity issues.

Test Procedure: Build should be successful and the regression test should also succeed

Risks: Low

Priority: P1

Signed-off-by: Sachinkumar_shah@comcast.com
@sshah500 sshah500 requested a review from a team as a code owner July 6, 2026 13:55
Copilot AI review requested due to automatic review settings July 6, 2026 13:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses Coverity findings by cleaning up resources that were previously left allocated/open after specific translation and connection-handling code paths.

Changes:

  • Free decoded assoc-device stats buffers after translating them into EasyMesh STA info.
  • Free decoded EasyMesh STA link metrics array after translation.
  • Free decoded channel-scan stats buffer (including on early error when the external proto is missing).
  • Close a client socket FD when removing a disconnected unicast client from the connection map.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
source/webconfig/wifi_easymesh_translator.c Adds explicit frees/nulling for decoded stats buffers after translation to prevent leaks.
source/platform/linux/he_bus/src/he_bus_connection.c Closes a removed client’s socket FD before freeing its connection-info structure.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants