diff options
Diffstat (limited to 'src/redis-cli.c')
-rw-r--r-- | src/redis-cli.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/redis-cli.c b/src/redis-cli.c index 08b3a713e..493d5e285 100644 --- a/src/redis-cli.c +++ b/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; } |