mirror of
https://github.com/fluencelabs/redis
synced 2025-06-15 02:01:21 +00:00
ae.c: solved a memory leak with no practical effects (since the event
loop is never destroyed in Redis). Thanks to @anydot for noticing it.
This commit is contained in:
2
src/ae.c
2
src/ae.c
@ -86,6 +86,8 @@ aeEventLoop *aeCreateEventLoop(int setsize) {
|
|||||||
|
|
||||||
void aeDeleteEventLoop(aeEventLoop *eventLoop) {
|
void aeDeleteEventLoop(aeEventLoop *eventLoop) {
|
||||||
aeApiFree(eventLoop);
|
aeApiFree(eventLoop);
|
||||||
|
zfree(eventLoop->events);
|
||||||
|
zfree(eventLoop->fired);
|
||||||
zfree(eventLoop);
|
zfree(eventLoop);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user