Commit 33753a73 authored by Pieter Noordhuis's avatar Pieter Noordhuis
Browse files

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

parent ca36b4ab
...@@ -488,9 +488,13 @@ static int cliSendCommand(int argc, char **argv, int repeat) { ...@@ -488,9 +488,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; return REDIS_ERR;
}
} }
free(argvlen);
return REDIS_OK; return REDIS_OK;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment