Skip to content

Conversation

@urschrei
Copy link
Member

Change HandleData.hptr from Option<NonNull<c_char>> to Vec<NonNull<c_char>> to track all allocated header pointers. Previously, only the last pointer was stored, causing memory leaks when network_get_header_value was called multiple times.

NB: this PR is tool-assisted (Claude Opus 4.5)

  • I agree to follow the project's code of conduct.
  • I added an entry to the project's change log file if knowledge of this change could be valuable to users.
    • Usually called CHANGES.md or CHANGELOG.md
    • Prefix changelog entries for breaking changes with "BREAKING: "

Change HandleData.hptr from Option<NonNull<c_char>> to Vec<NonNull<c_char>>
to track all allocated header pointers. Previously, only the last pointer
was stored, causing memory leaks when network_get_header_value was called
multiple times.


Signed-off-by: Stephan Hügel <[email protected]>
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