Commit caa63a38 authored by Mukund Sivaraman's avatar Mukund Sivaraman Committed by antirez
Browse files

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

parent 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% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment