valkey-io / libvalkey

Valkey client library in C
Other
12 stars 4 forks source link

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

Closed bjosv closed 1 month ago

bjosv commented 1 month ago

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 https://github.com/Nordix/hiredis-cluster/pull/234 .