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

This commit is contained in:
Pieter Noordhuis 2011-03-06 20:13:01 +01:00
parent ca36b4ab31
commit 33753a732a

View File

@ -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;
}