Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
10c35b58
Commit
10c35b58
authored
Nov 28, 2014
by
Salvatore Sanfilippo
Browse files
Merge pull request #2169 from razzle/unstable
fix benchmark memleak in loop mode
parents
acf73a05
0ae65bec
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-benchmark.c
View file @
10c35b58
...
...
@@ -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'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment