Skip to content

Fix sniffer CreateSession#9867

Merged
douzzer merged 1 commit intowolfSSL:masterfrom
embhorn:f19
Mar 5, 2026
Merged

Fix sniffer CreateSession#9867
douzzer merged 1 commit intowolfSSL:masterfrom
embhorn:f19

Conversation

@embhorn
Copy link
Copy Markdown
Member

@embhorn embhorn commented Mar 4, 2026

Description

Added XFREE(newHash, NULL, DYNAMIC_TYPE_HASHES) in the HashInit failure path, before freeing session.

Fixes f19

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

@embhorn embhorn self-assigned this Mar 4, 2026
Copilot AI review requested due to automatic review settings March 4, 2026 20:52
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes a memory leak in the sniffer session creation failure path when HashInit(newHash) fails.

Changes:

  • Free newHash on HashInit failure before freeing session and returning NULL.

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

@embhorn embhorn assigned wolfSSL-Bot and unassigned embhorn Mar 5, 2026
@douzzer douzzer added the Staged Staged for merge pending final test results and review label Mar 5, 2026
@douzzer douzzer merged commit 7ee9bd0 into wolfSSL:master Mar 5, 2026
595 of 596 checks passed
@embhorn embhorn deleted the f19 branch April 24, 2026 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Staged Staged for merge pending final test results and review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants