Permalink
Browse files

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

  • Loading branch information...
1 parent 048c0f0 commit 45332cc47bb25352d9980b871e63faac77e67cf1 @pietern pietern committed Mar 6, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/redis-cli.c
View
@@ -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.