-
-
Notifications
You must be signed in to change notification settings - Fork 710
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chunk has memory leak #438
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi.
Appending to a one of the chunk resulted from
lo.Chunk
might leak into to consecutive chunk.The reason for that is that the slicing does not add the capacity, so the default max capacity is used, and then upon append the slice isn't reallocated.
To fix that we simply have to slice by 3 parts
rather then the current implementation of
The text was updated successfully, but these errors were encountered: