提交 caa63a38 编写于 作者: M Mukund Sivaraman 提交者: antirez

If aeApiCreate() fails, there's probably not much one can do, but in the name of consistency...

上级 b362c111
......@@ -74,6 +74,8 @@ aeEventLoop *aeCreateEventLoop(int setsize) {
eventLoop->maxfd = -1;
eventLoop->beforesleep = NULL;
if (aeApiCreate(eventLoop) == -1) {
zfree(eventLoop->events);
zfree(eventLoop->fired);
zfree(eventLoop);
return NULL;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册