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
38488490
Commit
38488490
authored
Dec 31, 2019
by
wangyuan21
Browse files
free time event when delete eventloop
parent
6e4f70b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ae.c
View file @
38488490
...
@@ -135,6 +135,13 @@ void aeDeleteEventLoop(aeEventLoop *eventLoop) {
...
@@ -135,6 +135,13 @@ void aeDeleteEventLoop(aeEventLoop *eventLoop) {
aeApiFree
(
eventLoop
);
aeApiFree
(
eventLoop
);
zfree
(
eventLoop
->
events
);
zfree
(
eventLoop
->
events
);
zfree
(
eventLoop
->
fired
);
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
);
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