Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Minor memory leak in redis-cli (issue #464)

  • Loading branch information...
commit 45332cc47bb25352d9980b871e63faac77e67cf1 1 parent 048c0f0
@pietern pietern authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/redis-cli.c
View
6 src/redis-cli.c
@@ -489,9 +489,13 @@ static int cliSendCommand(int argc, char **argv, int repeat) {
}
}
- if (cliReadReply(output_raw) != REDIS_OK)
+ if (cliReadReply(output_raw) != REDIS_OK) {
+ free(argvlen);
return REDIS_ERR;
+ }
}
+
+ free(argvlen);
return REDIS_OK;
}

0 comments on commit 45332cc

Please sign in to comment.
Something went wrong with that request. Please try again.