提交 33753a73 编写于 作者: P Pieter Noordhuis

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

上级 ca36b4ab
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册