10000 Fix Double Dispose Issue by vazois · Pull Request #1168 · microsoft/garnet · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix Double Dispose Issue #1168

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

Merged
merged 3 commits into from
Apr 10, 2025
Merged

Conversation

vazois
Copy link
Collaborator
@vazois vazois commented Apr 9, 2025

This PR fixes issue #1161 error. We were disposing twice the storage session and that created an assertion failure when disposing one of the SegmentAligned buffers

@Copilot Copilot AI review requested due to automatic review settings April 9, 2025 20:29
Copy link
Contributor
@Copilot 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.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

libs/server/Resp/RespServerSession.cs:324

  • The removal of storageSession.Dispose() resolves the double disposal issue, but please verify that storageSession is disposed of in the appropriate location to avoid resource leaks. Consider adding a comment to clarify the ownership and disposal responsibility.
storageSession.Dispose();

@badrishc badrishc merged commit 0ce6ee6 into microsoft:main Apr 10, 2025
26 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jun 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0