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
59132e42
Commit
59132e42
authored
Feb 26, 2012
by
Premysl Hruby
Browse files
fix redis-benchmark memory leak
parent
36e6637d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-benchmark.c
View file @
59132e42
...
@@ -196,6 +196,8 @@ static void readHandler(aeEventLoop *el, int fd, void *privdata, int mask) {
...
@@ -196,6 +196,8 @@ static void readHandler(aeEventLoop *el, int fd, void *privdata, int mask) {
exit
(
1
);
exit
(
1
);
}
}
freeReplyObject
(
reply
);
if
(
config
.
requests_finished
<
config
.
requests
)
if
(
config
.
requests_finished
<
config
.
requests
)
config
.
latency
[
config
.
requests_finished
++
]
=
c
->
latency
;
config
.
latency
[
config
.
requests_finished
++
]
=
c
->
latency
;
c
->
pending
--
;
c
->
pending
--
;
...
...
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