Skip to content

Fix missing pfree in HandleExtendProtocol#1813

Open
hyongtao-code wants to merge 1 commit into
apache:mainfrom
hyongtao-code:fix-mem-leak
Open

Fix missing pfree in HandleExtendProtocol#1813
hyongtao-code wants to merge 1 commit into
apache:mainfrom
hyongtao-code:fix-mem-leak

Conversation

@hyongtao-code

@hyongtao-code hyongtao-code commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

Long log:

This potential memory leak was detected by Claude Code.

HandleExtendProtocol allocates a temporary buffer to receive extension protocol data but never frees it. Add missing pfree.

Signed-off-by: Yongtao Huang yongtaoh2022@gmail.com

Fixes #ISSUE_Number

What does this PR do?

Type of Change

  • Bug fix (non-breaking change)
  • New feature (non-breaking change)
  • Breaking change (fix or feature with breaking changes)
  • Documentation update

Breaking Changes

Test Plan

  • Unit tests added/updated
  • Integration tests added/updated
  • Passed make installcheck
  • Passed make -C src/test installcheck-cbdb-parallel

Impact

Performance:

User-facing changes:

Dependencies:

Checklist

Additional Context

CI Skip Instructions


This potential memory leak was detected by **Claude Code**.

HandleExtendProtocol allocates a temporary buffer to receive
extension protocol data but never frees it. Add missing pfree.

Signed-off-by: Yongtao Huang <yongtaoh2022@gmail.com>

@avamingli avamingli 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.

Thanks~ LGTM.

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.

2 participants