提交 18d0ef4b 编写于 作者: A antirez

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.
上级 e074416b
......@@ -86,6 +86,8 @@ aeEventLoop *aeCreateEventLoop(int setsize) {
void aeDeleteEventLoop(aeEventLoop *eventLoop) {
aeApiFree(eventLoop);
zfree(eventLoop->events);
zfree(eventLoop->fired);
zfree(eventLoop);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册