Commit 10c35b58 authored by Salvatore Sanfilippo's avatar Salvatore Sanfilippo
Browse files

Merge pull request #2169 from razzle/unstable

fix benchmark memleak in loop mode
parents acf73a05 0ae65bec
...@@ -693,8 +693,8 @@ int main(int argc, const char **argv) { ...@@ -693,8 +693,8 @@ int main(int argc, const char **argv) {
} }
/* Run default benchmark suite. */ /* Run default benchmark suite. */
data = zmalloc(config.datasize+1);
do { do {
data = zmalloc(config.datasize+1);
memset(data,'x',config.datasize); memset(data,'x',config.datasize);
data[config.datasize] = '\0'; data[config.datasize] = '\0';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment