Skip to content
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

Fix possible leak when failing to send a async cluster command #71

Merged
merged 3 commits into from
Aug 23, 2024

Conversation

bjosv
Copy link
Collaborator

@bjosv bjosv commented Aug 19, 2024

When valkeyAsyncFormattedCommand() fail to push a given callback to its internal queue we need to free the cluster_async_data used in the cluster part (as privdata).
Additionally; keep the error message from valkeyAsyncFormattedCommand().

This is the corresponding fix to Nordix/hiredis-cluster#234 .

bjosv added 3 commits August 19, 2024 10:15
When `valkeyAsyncFormattedCommand()` fail to push a given callback to its
internal queue we need to free the cluster_async_data (used as privdata).

Signed-off-by: Björn Svensson <[email protected]>
Keep the error message received from valkeyAsyncFormattedCommand()
in the cluster context.

Signed-off-by: Björn Svensson <[email protected]>
@bjosv bjosv requested a review from zuiderkwast August 20, 2024 06:54
@bjosv bjosv merged commit 6cfbdb2 into valkey-io:main Aug 23, 2024
41 checks passed
@bjosv bjosv deleted the fix-leak branch August 23, 2024 07:09
@bjosv bjosv added the bug Something isn't working label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants