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
36a09471
Commit
36a09471
authored
Aug 07, 2013
by
antirez
Browse files
redis-benchmark: fix memory leak introduced by
346256f9
parent
346256f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-benchmark.c
View file @
36a09471
...
@@ -125,6 +125,7 @@ static void freeClient(client c) {
...
@@ -125,6 +125,7 @@ static void freeClient(client c) {
aeDeleteFileEvent
(
config
.
el
,
c
->
context
->
fd
,
AE_READABLE
);
aeDeleteFileEvent
(
config
.
el
,
c
->
context
->
fd
,
AE_READABLE
);
redisFree
(
c
->
context
);
redisFree
(
c
->
context
);
sdsfree
(
c
->
obuf
);
sdsfree
(
c
->
obuf
);
zfree
(
c
->
randptr
);
zfree
(
c
);
zfree
(
c
);
config
.
liveclients
--
;
config
.
liveclients
--
;
ln
=
listSearchKey
(
config
.
clients
,
c
);
ln
=
listSearchKey
(
config
.
clients
,
c
);
...
...
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