Skip to content

Conversation

@vadimalekseev
Copy link
Member

Call clear() on the entire slice before exiting the function to guarantee the release of all held references to the input byte slice.

Related: #869

…ntee the release of all held references to the input byte slice
@vadimalekseev vadimalekseev deleted the clear-fields branch December 11, 2025 10:52
@vadimalekseev
Copy link
Member Author

Replaced with 63a68ed

valyala added a commit that referenced this pull request Dec 11, 2025
…all the fields up to Fields.Fields capacity

Use this function in cases when references to the underlying byte slice at Fields.Fields entries must be cleared,
so the underlying byte slice could be released by Go GC.

This is a follow-up for 63a68ed

See also #891
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.

1 participant