-
Notifications
You must be signed in to change notification settings - Fork 955
Fix memory leak in deferred reply buffer #2615
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
Conversation
Signed-off-by: Uri Yagelnik <[email protected]>
29354ef to
5731d8b
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## unstable #2615 +/- ##
============================================
- Coverage 72.26% 72.22% -0.04%
============================================
Files 127 127
Lines 70826 70828 +2
============================================
- Hits 51180 51159 -21
- Misses 19646 19669 +23
🚀 New features to boost your workflow:
|
|
So this case of memory leak is when the client will be freed before the blocked command is sent over the network correct? Can you explain the exact path that can lead to such a case? also maybe we should explain more on the top comment. I also think we should include a test for this case as there was no test of that path added. |
|
@yairgott can you PTAL? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this!
IMO, It would be more intuitive if the default free function of a list is zfree while listSetFreeMethod is used to override.
Set free method for deferred_reply list to properly clean up ClientReplyValue objects when the list is destroyed Signed-off-by: Uri Yagelnik <[email protected]>
Set free method for deferred_reply list to properly clean up ClientReplyValue objects when the list is destroyed Signed-off-by: Uri Yagelnik <[email protected]>
Set free method for deferred_reply list to properly clean up ClientReplyValue objects when the list is destroyed Signed-off-by: Uri Yagelnik <[email protected]>
Set free method for deferred_reply list to properly clean up ClientReplyValue objects when the list is destroyed Signed-off-by: Uri Yagelnik <[email protected]>
Set free method for deferred_reply list to properly clean up ClientReplyValue objects when the list is destroyed Signed-off-by: Uri Yagelnik <[email protected]>
Set free method for deferred_reply list to properly clean up
ClientReplyValue objects when the list is destroyed
This was introduced in #1819.