Commit 18d0ef4b authored by antirez's avatar antirez
Browse files

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.
parent e074416b
...@@ -86,6 +86,8 @@ aeEventLoop *aeCreateEventLoop(int setsize) { ...@@ -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);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment