mirror of
https://github.com/redis/redis.git
synced 2026-04-21 03:01:35 -04:00
Minor memory leak in redis-cli (issue #464)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
free(argvlen);
|
||||
return REDIS_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user