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
dd479880
Commit
dd479880
authored
Dec 31, 2019
by
wangyuan21
Committed by
antirez
Feb 27, 2020
Browse files
free time event when delete eventloop
parent
ecf3b2ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ae.c
View file @
dd479880
...
...
@@ -135,6 +135,13 @@ void aeDeleteEventLoop(aeEventLoop *eventLoop) {
aeApiFree
(
eventLoop
);
zfree
(
eventLoop
->
events
);
zfree
(
eventLoop
->
fired
);
/* Free time event. */
aeTimeEvent
*
next_te
,
*
te
=
eventLoop
->
timeEventHead
;
while
(
te
)
{
next_te
=
te
->
next
;
zfree
(
te
);
te
=
next_te
;
}
zfree
(
eventLoop
);
}
...
...
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