提交 97d31c63 编写于 作者: M Matthias Petschick 提交者: antirez

fix benchmark memleak in loop mode

上级 73996c86
......@@ -693,8 +693,8 @@ int main(int argc, const char **argv) {
}
/* Run default benchmark suite. */
data = zmalloc(config.datasize+1);
do {
data = zmalloc(config.datasize+1);
memset(data,'x',config.datasize);
data[config.datasize] = '\0';
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册