Skip to content

Commit

Permalink
fix(cluster): fix memory leaking in sendCommand method
Browse files Browse the repository at this point in the history
  • Loading branch information
luin committed Feb 27, 2016
1 parent 9cd89bf commit 410af51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cluster/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,8 @@ Cluster.prototype.sendCommand = function (command, stream, node) {
if (!node && !command.__is_reject_overwritten) {
command.__is_reject_overwritten = true;
var reject = command.reject;
var partialTry = _.partial(tryConnection, true);
command.reject = function (err) {
var partialTry = _.partial(tryConnection, true);
_this.handleError(err, ttl, {
moved: function (slot, key) {
debug('command %s is moved to %s', command.name, key);
Expand Down

0 comments on commit 410af51

Please sign in to comment.