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
0ae65bec
Commit
0ae65bec
authored
Nov 28, 2014
by
Matthias Petschick
Browse files
fix benchmark memleak in loop mode
parent
acf73a05
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis-benchmark.c
View file @
0ae65bec
...
...
@@ -693,8 +693,8 @@ int main(int argc, const char **argv) {
}
/* Run default benchmark suite. */
do
{
data
=
zmalloc
(
config
.
datasize
+
1
);
do
{
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