Commit 45332cc4 authored by Pieter Noordhuis's avatar Pieter Noordhuis
Browse files

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

parent 048c0f0f
...@@ -489,9 +489,13 @@ static int cliSendCommand(int argc, char **argv, int repeat) { ...@@ -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; 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